[PLUG] another bash question

Russ Johnson russj at dimstar.net
Tue Aug 6 22:12:48 UTC 2002


At 03:00 PM 8/6/2002 -0700, you wrote:
>I tried this
>A=$(uname -n)
>sed -e "s/ServerName localhost/ServerName $A/"httpd.conf > httpd.new
>mv httpd.new httpd.conf
>
>But it gave me an error message
>sed: -e expression #1, char 57: Unknown option to 's'


Count to the 57th character of the sed command, and you find that it's way 
beyond the end of the sed command. It looks like you didn't put a space 
between the closing quote and the filename.


Russ Johnson
http://www.dimstar.net


Why aren't there any left-handed screwdrivers?






More information about the PLUG mailing list