Created
January 28, 2013 10:23
-
-
Save yumyo/4654447 to your computer and use it in GitHub Desktop.
This will recursively convert CRLF to LF in non-binary files under the current directory —source: http://bit.ly/wJxtlK
This file contains hidden or 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 -exec grep -qIP '\r\n' {} ';' -exec perl -pi -e 's/\r\n/\n/g' {} '+' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment