Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ワイルドカード機能を使用してドキュメントの目盛りを置き換える方法を思い出せないようです。
ここにdata.txtがあります:
+40 46'N + 014 15'E +21 17'N -157 52'W
' の後のすべてを S に置き換えたいと思います。sed コマンドを実行すると、次のエラーが表示されます。
sed 's/'.*/S/g' data.txt > new.txt
目盛りを検索して置き換えるのはsedの問題ですか?どんな助けでも大歓迎です。