LoginSignup
0
0

More than 1 year has passed since last update.

今日のsed error:unterminated `s' command

Last updated at Posted at 2022-05-05
bash
sed: file ../autosar.sed line 237: unterminated `s' command


sed: file ../autosar.sed line 1: unknown option to `s'


sed: -e expression #1, char 2: invalid usage of line address 0

sed 0f ../autosar.sed AUTOSAR_SWS_TImeSynchronization.pdf.gst > ts.set


最初のエラーは/がぬけていて
s/serverreplyserver reply/g
という行があった。

s/serverreply/server reply/g
に直した。

2番目のエラーは

s/keyconstraints/keyconstraints/g

と、置換後も同じ文字列だった。

s/keyconstraints/key constraints/g

に直した。

いえ、間違い。
s/keyslotcontentprops/key slot content props/s

と、gではなくsを書いていた行があった。

s/keyslotcontentprops/key slot content props/g
に直した。

unique/uniqコマンドもエラー多発させてしまった。

bash
uniq autosar.txt
s/aborthandler/abort handler/g access point/g context/gga type/gult point/gfication/g

uniq: autosar.sedtxt: No such file or directory

疲れている。lsコマンドでもエラー。

bash
ls: cannot access 'autosar.*': No such file or directory

参考資料

今日のSed error: unknown option to `s'

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0