On Wed, 25 Sep 2002, Steve Buehler wrote:

> Robert, Doug, Anthony....thank you.
> Why I didn't think of egrep I'll never know.  Not enough sleep and not 
> enough experience I guess.  Here is how I used it that gave me a little 
> better result that I wanted for the output.
> cat *.conf | egrep "<VirtualHost|ServerName"

my original solution was

$ egrep "<VirtualHost|ServerName" *.conf

it appears that you switched it around to using a pipe just to
avoid having the filenames printed, yes?  check the man page for
egrep -- there is a "-h" option that handles this, and if you
can avoid using a pipe, technically, it's always a faster solution
(although admittedly it wouldn't be noticeable in practice).

rday



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to