Created
March 22, 2011 08:47
-
-
Save tonit/880947 to your computer and use it in GitHub Desktop.
Fixing Mac specific line endings to Unix defaults
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
find . -type f -name "*.java" -exec perl -pi -e 's/\r/\n/g' \{\} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Comment: This is not a silver bullet. Depending on what the file endings look like currently this can also mess up things.
This works if you have CR only on your files but need LF