'\r':|'\r': command not found

【'\r':|'\r': command not found】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.

    推荐阅读