[PLUG] another bash question

Richard Kurth rkurth at starband.net
Tue Aug 6 21:09:49 UTC 2002


Hello Don,

Tuesday, August 06, 2002, 1:48:02 PM, you wrote:


DB> Richard Kurth wrote:
>> 
>> Ok I changed it to look Like this
>> A=$(uname -n)
>> sed -e "/ServerName localhost/c\
>> ServerName $A\
>> " < httpd.conf
>> 
>> and this is the error I get now
>> sed: -e expression #1, char 24: Extra characters after command
>> 

DB> I think you need to ditch the backslash after $A (as it's the
DB> last line).

Ok I removed the backslash after $A so it looks like this
A=$(uname -n)
 sed -e "/ServerName localhost/c\
 ServerName $A
 " < httpd.conf

 and I still get the
 sed: -e expression #1, char 24: Extra characters after command


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





More information about the PLUG mailing list