[转]shell脚本执行错误 $'\r':command not found

Linux下有命令dos2unix

你只要输入dos2unix *.sh就可以完成转换工作了

如果命令不存在的话就用如下命令安装

yum install dos2unix -y

猜你喜欢

转载自blog.csdn.net/Freya0110/article/details/82226197