利用cat -v去除文件中的不可见特殊字符 按照链接中的方法可以去除 ^@ tail -3 myscript.log | head -1 > change_log change_msg=`cat -v change_log | tr -d '^@'`