how to grep multiply strings
Jun Lu
luj at gus17.ecn.purdue.edu
Thu Feb 28 06:51:24 AEST 1991
In article <531 at ctycal.UUCP> pat at ctycal.UUCP (Patrick Woo) writes:
>I am trying to display line that doesn't contain string1 or string2 or ...
>stringn.
>
>What I did was
>
>grep -v string1 | grep -v string2 | .... | grep -v stringn
>
>Just wondering if there is an easier way other than doing all this piping.
>Thanks in advance.
>
How about
egrep -v 'string1|string1|...|stringn'
?
--
-- Jun Lu Internet:luj at ecn.purdue.edu --
-- Aeronautics & Astronautics Bitnet: luj%ecn.purdue.edu at purccvm --
-- Purdue University UUCP: pur-ee!luj --
-- W. Lafayette, IN 47907 Phone:317-494-9410 Fax:317-494-0307 --
More information about the Comp.unix.questions
mailing list