in reply to Re: Write a file if grep finds a pattern?
in thread Write a file if grep finds a pattern?
if( `grep -l error /temp/logbook.log > /dev/null`) `echo 'ok!' > /temp/ok.txt` }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Write a file if grep finds a pattern?
by JavaFan (Canon) on Nov 19, 2010 at 13:29 UTC |