++ 25/04/03 13:44 +0200 - Craig: >Hi Guys > >I need to grep log files and delete certain criteria. Any ideas >and how I can do this ? cat logfile | grep -v criteria1 | grep -v criteria2 > logfile.new have a look at logfile.new to check that it's correct and mv logfile.new logfile assumes : - nobody is writing to the file at the same time - you have enough space ... Olivier P.S. did I understand your question correctly ?