Re: [Nolug] grepping multiple strings

From: Ron Johnson <ron.l.johnson_at_cox.net>
Date: 03 Mar 2003 12:42:45 -0600
Message-Id: <1046716965.11427.13.camel@haggis>

On Mon, 2003-03-03 at 11:58, Scott Harney wrote:
> Ron Johnson <ron.l.johnson@cox.net> writes:
>
> >
> > Thanks. I wonder why egrep doesn't have an "and" operator also. That
> > seems like a big oversight.
>
> There's a 'rule' of sorts that says patterns must match one consecutive
> string of text. Thus, no 'and' in grep utilities. There is
> another version of grep that you may or may not have, agrep, that does
> indeed have an 'and' operator. I use the | method of narrowing down
> searches so often I never even considered that an 'and' operator might
> or might not exist until you asked the question.

"or" to narrow down searches????

"or" expands search results. Only "and" narrows down searches.

-- 
+-----------------------------------------------------------+
| Ron Johnson, Jr.     Home: ron.l.johnson@cox.net          |
| Jefferson, LA  USA   http://members.cox.net/ron.l.johnson |
|                                                           |
| The difference between Rock&Roll and Country Music?       |
| Old Rockers still on tour are pathetic, but old Country   |
| signers are still great.                                  |
+-----------------------------------------------------------+
___________________
Nolug mailing list
nolug@nolug.org
Received on 03/03/03

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