|XP is just a number|
Write a file if grep finds a pattern?by matze77 (Friar)
|on Nov 19, 2010 at 08:50 UTC||Need Help??|
matze77 has asked for the
wisdom of the Perl Monks concerning the following question:
I want to write a file if grep finds a certain pattern "error" in file c:/temp/logbook.log.
I thought i could use the returncode "0", could you help me where to place the "if" construct, my code is broken: