Snippets: Shell: Change File Line Ending

20th August 2020 at 2:19pm
Snippets: Shell

dos2unix 可以修改 line ending,同时它只会修改文本文件,不会修改二进制文件:

dos2unix <file_path>

整个目录改 line ending:

find ./ -type f -exec dos2unix {} \;