how to grep multiply strings

Patrick Woo pat at ctycal.UUCP
Fri Feb 1 05:32:00 AEST 1991


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.

-- 
  Patrick Woo                  pat%ctycal at cpsc.ucalgary.ca
  Land Information Services                 or
  The City of Calgary       ...{alberta,ubc-cs,uunet}!calgary!ctycal!pat



More information about the Comp.unix.questions mailing list