More than 3 years have passed since last update.
今日のSed error: unknown option to `s'
0
Last updated at Posted at 2022-05-01
文字計数処理:ちょっとした処理の変化が、データにどう変化を与えるか。
でsedのスクリプトを利用している。
mac OSで編集し、dockerでファイル共有して実行していた。
bash
sed: file ../autosar.sed line 1: unknown option to `s'
という警告が出た。
sed scriptの改行をCR+LFにした。
エラーは出なくなった。
エラーになったときはLFだけで、次の行のsがオプションだと解釈されたのだろうか。
macOSとLinuxでファイル共有している現象の一つかもしれない。
WindowsとLinuxでファイル共有している時にも類似の現象があるかもしれない。
参考資料
下記作業の一環です。
AUTOSAR R21-11(0) 仕様ダウンロード一覧。単語帳。参考文献資料作成
特に、
AUTOSAR 21-11 (9) AP:Specification of Adaptive Platform Core, 新人にお勧めの基本動作(2), AUTOSAR(60)
で始めた10文書の処理で起きたエラーです。
関連記述があるかもしれません。
文書履歴
ver .0.01 初稿 20220501
ver. 0.03 URL追記 20220503
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
