Linux中转换window文件 vim进入文件 在命令模式下,输入 :set ff? 查看文件格式为dos或者unix :set ff=unix :wq 保存退出,即可 或者直接用命令: dos2unix xxx.sh