Created
June 2, 2014 22:05
-
-
Save lg3bass/e3ec8749d3f4efc13f74 to your computer and use it in GitHub Desktop.
dos2unix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//convert all the files in a directory to unix line endings. from "\r\n" to "\n". | |
for f in *; do [[ -f $f ]] && dos2unix "$f" "$f"; done | |
...and if you want it to be recursive do: | |
find . -type f -exec dos2unix {} {} ';' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment