首页 > 代码库 > sh脚本异常:/bin/sh^M:bad interpreter: No such file or directory

sh脚本异常:/bin/sh^M:bad interpreter: No such file or directory

linux更改脚本编码格式:vi *.sh

通过

set ff

查看当前格式

再通过 :set ff=unix 更改

然后保存退出(:wq)

 

sh脚本异常:/bin/sh^M:bad interpreter: No such file or directory