LoginSignup
4
6

More than 5 years have passed since last update.

^@ (null制御文字)をsedで消す

Last updated at Posted at 2017-04-05

参考

sed -e "s/\x0/\n/g"

メール送信用

メール本文に ^@ が含まれていると添付ファイル扱いになる問題に遭遇。
sed で消すことで解決した。

メール送信
git diff \
  | sed -e "s/\x0/\n/g" \
  | mail -s "diff" メール@アドレス
4
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
6