if( `grep -l error /temp/logbook.log > /dev/null`) `echo 'ok!' > /temp/ok.txt` }
In reply to Re^2: Write a file if grep finds a pattern?
by Anonymous Monk
in thread Write a file if grep finds a pattern?
by matze77
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |