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