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 はどのように使用できますか? シンボルの前のスペース&が問題です。
&
word="Word" str="Word: One \\& Three" echo "$str" | sed -e 's/'$word'.*/'$str'/g'