mac下用dos2unix解决diff比较时换行符差异问题
安装dos2unix
$ sudo port -v selfupdate
$ sudo port upgrade outdated
$ sudo port install dos2unix
批量转换
$ cd /xxx/xxx/textFileRootDir
$ find ./ -type f -exec dos2unix {} \;
$ sudo port -v selfupdate
$ sudo port upgrade outdated
$ sudo port install dos2unix
$ cd /xxx/xxx/textFileRootDir
$ find ./ -type f -exec dos2unix {} \;