Skip to content

Instantly share code, notes, and snippets.

@DerfOh
Last active December 21, 2016 18:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DerfOh/0bf79edfa7569e66e9354c1cc1f5d336 to your computer and use it in GitHub Desktop.
Save DerfOh/0bf79edfa7569e66e9354c1cc1f5d336 to your computer and use it in GitHub Desktop.
convert all files in a dir to unix using dos2unix

Convert all files in a directory to Unix format

  1. Set up dos2unix

  2. Run the following in the directory

find . -type f -exec dos2unix {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment