linux维护问题列表

117 阅读1分钟

Q1:执行脚本报错如下:

/bin/bash^M: bad interpreter: No such file or directory

A1:可用下面命令替换一下

sed -i 's/\r//' *.sh