导航

centos执行脚本遇到^M无法解析(适用于所有linux 吧)

不是批量生效,估计要改vim的source。

 

vi该文件

:set ff?

可以看当前格式,dos或者unix

:set ff=unix

将文件强转为unix即可

posted on 2021-07-16 09:52  toughcactus  阅读(189)  评论(0编辑  收藏  举报