window打包的shell脚本 \r\n 不识别

转自:https://blog.csdn.net/lxxc11/article/details/79386005/

Linux下有命令dos2unix

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

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

yum install dos2unix -y

猜你喜欢

转载自blog.csdn.net/now19930616/article/details/85342892