Delete lines containing a specific word

Bjoern Schliessmann usenet-mail-0306.20.chr0n0ss at spamgourmet.com
Sun Jan 6 18:33:36 EST 2008


Steven D'Aprano wrote:

> grep doesn't delete lines. grep matches lines. If you want to
> delete them, you still have to do the rest of the job yourself.

In which way does "grep -v mypattern myfile > myfile" not delete the
lines matching mypattern?

Regards,


Björn

-- 
BOFH excuse #184:

loop found in loop in redundant loopback




More information about the Python-list mailing list