在linux上经常遇到这种问题,从网上下载文件到 linux 上后,就多了很多 ^M这种东西,如何集体删除这种东西呢!
用 vim 打开文件 进行如下设置 将文件格式转化为unix
:set ff=unix :x