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

On 25-Sep-2002/20:34 -0500, Steve Buehler <[EMAIL PROTECTED]> 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"
>
>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.

See the --after-context option in the grep manpage.


Tony
- -- 
Anthony E. Greene <mailto:[EMAIL PROTECTED]%3E>
OpenPGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26  C484 A42A 60DD 6C94 239D
AOL/Yahoo Messenger: TonyG05    HomePage: <http://www.pobox.com/~agreene/>
Linux. The choice of a GNU generation <http://www.linux.org/>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Anthony E. Greene <mailto:[EMAIL PROTECTED]> 0x6C94239D

iD8DBQE9knR1pCpg3WyUI50RApczAKCxBEx3akUf5Z8QEik0a6kvAq/nTwCgyI7S
eh2sMAXdPxxUdeJ+7iAgwok=
=oN3b
-----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