<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font size="-1">If I run a script with this command (should search
somefile <font size="-1">and substitute "UPSCABLE <font
size="-1">ether" for "UPSCABLE usb" wherever it is found)</font></font>:<br>
<br>
sed -i -e 's/UPSCABLE usb/UPSCABLE ether' <somefile><br>
<br>
It produces the error:<br>
<br>
sed: -e expression #1, char 29: unterminated `s' command<br>
<br>
A web search seems to indicate that this is a problem with special
characters needing to be escaped.<br>
<br>
I tried:<br>
<br>
sed -i -e 's\/UPSCABLE usb\/UPSCABLE ether' <somefile><br>
<br>
But that simply produces:<br>
<br>
sed: -e expression #1, char 31: unterminated `s' command<br>
<br>
Anyone know how to fix this?<br>
<br>
</font>
</body>
</html>