Last active
August 29, 2015 14:07
-
-
Save younthu/b1e918af964d371289cd to your computer and use it in GitHub Desktop.
dos to unix break line
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
可以用dos2unix 工具做dos 2 unix 格式转换。 | |
dos2unix可以用brew安装. | |
更多dos 2 unix 格式转换请参考 | |
http://www.cyberciti.biz/faq/howto-unix-linux-convert-dos-newlines-cr-lf-unix-text-format/ | |
note: | |
dos2unix貌似不工作,没有仔细研究为何。最后用TextMate做格式转换解决了这个问题。TextMate->Text->Reformat可以帮忙去除windows换行符,然后用vim做下处理,添加换行符就可以了。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment