'\r': command not found
2019-06-14 本文已影响0人
cityhash123
2019-06-14
方法一
dos2unix
方法二
sed -i 's/\r$//' filename
Explanation:
Option -i
is for in-place editing, we delete the trailing \r
directly in the input file. Thus be careful to type the pattern correctly.