>>>>> "Grant" == Grant Parnell <[EMAIL PROTECTED]> writes:



Grant> HTTP_HOST=`grep "^ServerName" /etc/httpd/conf/httpd.conf| awk
Grant> '{print $2}'`

Why bother with grep when awk can do it for you?

$ awk '/^ServerName/ { print $2 } ' /etc/httpd/conf/httpd.conf

or whatever.


Sorry, but excessive processes in pipelines hit a button of mine...

--
Dr Peter Chubb  http://www.gelato.unsw.edu.au  peterc AT gelato.unsw.edu.au
The technical we do immediately,  the political takes *forever*

-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to