if grep -l error /temp/logbook.log > /dev/null then echo 'ok!' > /temp/ok.txt fi
In reply to Re: Write a file if grep finds a pattern?
by JavaFan
in thread Write a file if grep finds a pattern?
by matze77
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |