执行脚本报错:/bin/sh^M: bad interpreter: No such file or directory

1、用vi打开这个文件

2、:set ff?

3、如果fileformat=dos,说明该文件在windows下编辑过,被转换成windows下的dos文本格式

4、:set ff=unix

5、:wq保存退出

猜你喜欢

转载自blog.csdn.net/weixin_42377147/article/details/89373432
今日推荐