Re: [Nolug] grepping multiple strings

From: Scott Harney <scotth_at_scottharney.com>
Date: Mon, 03 Mar 2003 13:14:42 -0600
Message-ID: <873cm4clel.fsf@zenarcade.local.lan>

"Andrew S. Johnson" <andy@asjohnson.com> writes:

> How about egrep "this.*that|that.*this". Worked for me.

Doesn't scale too well beyond two search terms though, does it?
Believe it or not, I deliberately ignored doing that example in my
reply for this reason. I very frequently do things like:

$ grep pattern1 /var/log/logfile | grep -v ignorepattern1 \
  | grep -v ignorepattern2 | less

-- 
Scott Harney<scotth@scottharney.com>
"...and one script to rule them all."
___________________
Nolug mailing list
nolug@nolug.org
Received on 03/03/03

This archive was generated by hypermail 2.2.0 : 12/19/08 EST