shell脚本执行错误 $' ':command not found

shell脚本执行错误 $' ':command not found

 

Linux下有命令dos2unix

可以用一下命令测试

vi -b filename

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

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

yum install dos2unix -y
原文地址:https://www.cnblogs.com/wilburxu/p/9150517.html