sedの区切り文字は#
や!
に変えることができる。
ただし、!
の場合は"
ではなく'
で囲む必要がある。
sed -i "" "s#https://example.com#http://localhost:3000#g" test.txt
sed -i "" 's!https://example.com!http://localhost:3000!g' test.txt
More than 1 year has passed since last update.
sedの区切り文字は#
や!
に変えることができる。
ただし、!
の場合は"
ではなく'
で囲む必要がある。
sed -i "" "s#https://example.com#http://localhost:3000#g" test.txt
sed -i "" 's!https://example.com!http://localhost:3000!g' test.txt
Register as a new user and use Qiita more conveniently