window、Linux 文本文件转换

如下:

$ sed -e s/.$// mydos.txt > myunix.txt
$ sed -e s/$/\r/ myunix.txt > mydos.txt