sed:-e式#1、char 13: `s 'の不明なオプション



Sed E Expression 1



エラーを報告する

今日使用sed 's/regex/replacement/'エラーは次のとおりです。

[root@xxxxx logs]# echo url= | sed 's/.*/&http://localhost:8080/message/get/' sed: -e expression #1, char 13: unknown option to `s'

分析

明らかに、エラーの原因は特殊文字にあります。/エスケープなし。



解決する

[root@xxxxx logs]# echo url= | sed 's/.*/&http://localhost:8080/message/get/' url=http://localhost:8080/message/get