On Wed, 2002-09-25 at 20:34, Steve Buehler wrote: > I am trying to run a cat command (on a RedHat 6.2 box) on some files and > can't seem to get it write. The output that I want is from the apache conf > files. I have a lot of the .conf files, one for each domain. The lines > that I am looking for are "<VirtualHost" and "ServerName" > The closest that I can come to the command would be: > cat *.conf | grep "<VirtualHost" > cat *.conf | grep "ServerName" > use the -E option or egrep (same difference)
grep -E "^[^#].*\<VirtualHost | ^[^#].*ServerName" *.conf info grep has some good information HTH Bret -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list