执行 xx.sh脚本 报错xx.sh:行8: $' ': 未找到命令 解决方法

1.yum install dos2unix

2.dos2unix xx.sh

原文地址:https://www.cnblogs.com/lyz-2019-12-05/p/12049066.html