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

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

通过

set ff

查看当前格式

再通过 :set ff=unix 更改

然后保存退出(:wq)

 

posted @ 2017-01-13 13:18  ofm  阅读(189)  评论(0编辑  收藏  举报