shell脚本执行出错 $'\r':command not found

用Windows记事本写的shell,上传到Linux后执行报错,$'\r':command not found ,需要转换下格式,用命令 dos2unix   filename.sh,如果命令找不到,则需要安装dos2unix , 例如 yum install dos2unix -y

猜你喜欢

转载自blog.csdn.net/terence_csdn/article/details/86558379
今日推荐