[Lubuntu] sed error: -e expression ... unterminated `s' command
John Hupp
lubuntu at prpcompany.com
Thu Dec 6 18:48:36 UTC 2012
On 12/6/2012 1:36 PM, Lars Noodén wrote:
> On 12/6/12, John Hupp <lubuntu at prpcompany.com> wrote:
>> If I run a script with this command (should search somefile and
>> substitute "UPSCABLE ether" for "UPSCABLE usb" wherever it is found):
>>
>> sed -i -e 's/UPSCABLE usb/UPSCABLE ether' <somefile>
>>
>> It produces the error:
>>
>> sed: -e expression #1, char 29: unterminated `s' command
> Are you sure you have the closing slash? It should be in the format s///
> Or you can use other characters besides slash (/).
>
> Regards
> /Lars
>
I don't quite understand. How would you re-write my sample command?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/lubuntu-users/attachments/20121206/733b9816/attachment.html>
More information about the Lubuntu-users
mailing list