如图所示,这个错误一般是linux 下文件格式的问题导致,
shell脚本报错“^M: bad interpreter”解决方法
shell脚本报错“^M: bad interpreter”解决方法
解决办法 如下
vi shell 脚本,修改 文件格式为 unix 即进入末行模式,:set ff=unix

shell脚本报错“^M: bad interpreter”解决方法

查看文件格式 :set ff ,如果为 unix ,修改成功,问题解决

shell脚本报错“^M: bad interpreter”解决方法

相关文章:

  • 2021-10-06
  • 2022-01-05
猜你喜欢
  • 2021-12-18
  • 2021-08-28
  • 2021-11-19
  • 2021-10-20
  • 2022-01-12
  • 2021-10-15
  • 2022-03-02
相关资源
相似解决方案