hello cc

linux < - -> windows

Posted on 2015-11-03 22:33  星际海盗  阅读(110)  评论(0)    收藏  举报

 

1. 第一个问题是:linux下的换行和windows下的换行不一致

在linux vim下的内容有换行,在记事本下却没有换行,

解决办法是:编写脚本将vim下的文本末尾的‘\n’换成‘\r\n’,然后在记事本下打开,就好啦。

 

参考:http://blog.chinaunix.net/uid-20592013-id-3016200.html

hello man