-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 25 September 2002 09:34 pm, Steve Buehler wrote:

> I would like to combine them so that it will give the the
> "<VirtualHost" and the next line it will give me the "ServerName" that
> is in each of the .conf files.
> I thought, by the man page for grep, that I could do something like
> this: cat *.conf | grep "<VirtualHost" |; "ServerName"
> But that doesn't work at all.
>
> I would appreciate if someone might be able to help me out here.

No need for 'cat' here, see:
http://www.ling.helsinki.fi/~reriksso/unix/award.html

This should do the trick for your search:
egrep '<VirtualHost|ServerName'  *.conf

- -- 
- -Michael

pgp key:  http://www.tuxfan.homeip.net:8080/gpgkey.txt
Red Hat Linux 7.{2,3} in 8M of RAM: http://www.rule-project.org/
- --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAj2SehcACgkQn/07WoAb/SusGgCgqD9BDTz8eeT7RvvXeBivU8NJ
QxgAn2n03G6nA6zEgUZcOoJem/nLobfL
=ZQA9
-----END PGP SIGNATURE-----



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

Reply via email to