[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

AW: grep and delete



 
try
 
grep -v regexp_that_you_want_to_be_deleted file >file2
mv file2 file
 
"grep -v " shows lines NOT matching your regexp.
 
..
 
regards

Michael Kaiser
_______________________________________________
HDI V.a.G.
Informationsverarbeitung Systemtechnik / ZIBP
Riethorst 2
30659 Hannover
Büro: Podbielskistraße 396
Tel.:  +49 (511) 645-3491
Fax:  +49 (511) 645-4400
E-Mail: michael.kaiser2@hdi.de
Internet: www.hdi.de

Wichtiger Hinweis:
Diese E-Mail (inklusive etwaiger Anhänge) ist vertraulich und nur für den Adressaten bestimmt. Wenn Sie diese E-Mail irrtümlich erhalten haben, machen wir Sie darauf aufmerksam, dass Ihnen eine Kenntnisnahme, eine Vervielfältigung oder Weitergabe nicht gestattet ist. Bitte informieren Sie uns umgehend, löschen Sie die E-Mail und vernichten Sie etwaige Ausdrucke.

Important Note:
This e-mail (including any attachments) is confidential and intended only for the use of the addresse (s) named herein. If you have recieved this e-mail in error, you are hereby notified that any review, copying or distribution of it is strictly prohibited. Please inform us immediately and destroy the original e-mail and any printouts.

-----Ursprüngliche Nachricht-----
Von: Craig [mailto:craigsc@db.mr.co.za]
Gesendet: Freitag, 25. April 2003 13:44
An: Debian-ISP
Betreff: grep and delete

Hi Guys
 
I need to grep log files and delete certain criteria. Any ideas
and how I can do this ?
 
Thanks
Craig

Reply to: