Yes, I was trying to avoid the filenames printing out.  Thank You for the 
info.  This is exactly what I needed.  Speed is not to much of a factor for 
what I am doing here though because there are less than 100 .conf 
files.  But it will come in handy in the future.

Thanks
Steve

At 03:16 AM 9/26/2002 -0400, you wrote:
>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
>
>--
>This message has been scanned for viruses and
>dangerous content by MailScanner, and is
>believed to be clean.
>ow3



--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
ow3



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

Reply via email to