[wellylug] Is there a good way to....
Ewen McNeill
wellylug at ewen.mcneill.gen.nz
Thu Jan 29 22:54:37 NZDT 2004
In message <20040129054906.90856.qmail at web12202.mail.yahoo.com>, Wood Brent writes:
>If you have a few patterns, which do not easily fit a single regexp, just pipe
>the output through successive grep -v commands in a single statement to filter
>them all out.
man 1 egrep
Ewen
PS: Now I re-read the original psuedo code, it looks like you want to
keep lines matching some pattern; in which case "grep" (and its
friends) sans the "-v" would do just fine. Use whichever allows you
to best describe what you want to keep (ie, "keep these" or "keep
anything but these").
More information about the wellylug
mailing list