dostolinux and linuxtodos

dostolinux

1 #! /bin/sh                                                                                                         
2 sed -e 's/.$//' $1>$2

linuxtodos

1 #! /bin/sh                                                                                                         
2 sed -e 's/$/\r/' $1>$2

关于换行符的区别:

http://blog.csdn.net/shanliangliuxing/article/details/8828200

原文地址:https://www.cnblogs.com/openix/p/3120044.html