ITeye博客

mac,windows,linux 换行处理

sharp-fcc · 2016-11-04 12:36 · util · 移动开发 · Markdown

如果是在windows上处理unix文件,使用如下命令:

D:\>TYPE unix_file | FIND /V "" > dos_file

 如果是在unix文件拿到windows文件, 使用如下命令:

tr -d '\r' < inputfile > outputfile

 或者

tr '\r' '\n' < inputfile > outputfile

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。