[PLUG] another bash question

Richard Kurth rkurth at starband.net
Tue Aug 6 19:36:13 UTC 2002


Will this work in bash

A='uname -n'   #or this A=$(uname -n)
sed -e '/ServerName localhost/c\
ServerName $A\
' < httpd.conf

So far all it does is just fill in the ServerName with an $A
it seams like the problem is that the variable is not read inside the
sed command how can I make this work

-- 
Best regards,
 Richard                          mailto:rkurth at starband.net





More information about the PLUG mailing list