Last Updated: May 15, 2019
·
1.578K
· bartlomiejdanek

Convert files from Dos to Unix

You need to install dos2unix command line tool:

  • for OS X, you can install it via brew, brew install dos2unix
  • for Debian family systems, just call apt-get install dos2unix
  • and execute following line (all files with txt extension will be converted into to Unix files type)

    $ find . -type f -name "*.txt" -exec dos2unix {} \;