如下:
$ sed -e ‘s/.$//‘ mydos.txt > myunix.txt $ sed -e ‘s/$/\r/‘ myunix.txt > mydos.txt
window、Linux 文本文件转换
原文:https://www.cnblogs.com/pinganzi/p/10293982.html