January 29th, 2004, 12:42 AM
I am very new to unix scripting. I have nearly 200 logfiles on my system. Could someone pls give me a script which could grep for 'errors|warnings' in all the logfiles..Pls help me with this as I am stuck.
waiting for response,
February 2nd, 2004, 06:57 PM
Wont this work:
im not sure if it works, but by reading the grep man it says V removes lines from output or so.
bash$ cat * || grep -V warninglines > newlogfile.txt
Just hoping this helps.