2018-11-04 シェル \nを置換する Linux シェル \nを「aaa」に置換# echo "\n" | sed -e 's/\\n/aaa/g' 結果:aaa 削除する場合echo "\n" | sed -e 's/\\n//g' 結果: