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.
テキストファイルの/または\を置き換える方法は?私はこれらのキャラクターを「エスケープ」しようとしましたが、今のところ成功していません
エコー'///\\' | sed's //// some_text /'
明らかに機能しません。
ありがとうBM
echo "\\\message\//" | sed 's;[\/];REPLACEMENT-TEXT;g'
区切り文字を変更したくない場合は、これ
sed 's/[\\/]/U/g' temp.txt