shell脚本dos格式转换成unix格式

 时间:2024-11-05 05:23:46

1、当在Linux系统执行一个.sh脚本时,提示报错

shell脚本dos格式转换成unix格式

2、这时候打开数据文件

shell脚本dos格式转换成unix格式

3、输入 :set ff 回车查看文件格式

shell脚本dos格式转换成unix格式shell脚本dos格式转换成unix格式

4、显示文件格式是 dos,输入 :set ff=unix,回车修改文件格式

shell脚本dos格式转换成unix格式

5、修改完成后,保存退出

shell脚本dos格式转换成unix格式

6、再次执行脚本文件,成功执行。

shell脚本dos格式转换成unix格式
  • shell快速入门教程视频
  • 如何使用shell的Unix风格的ps命令
  • shell构建基本脚本
  • shell脚本报错“^M: bad interpreter”解决方法
  • shell脚本怎么调试
  • 热门搜索
    9月25日是什么星座 窃窃私语是什么意思 属虎和什么属相最配 saber是什么意思 nt是什么意思 湿疹用什么药膏 月亮是什么星 现汇是什么意思 六级成绩什么时候出 纠结是什么意思