Created
January 29, 2011 00:19
-
-
Save aeurielesn/801304 to your computer and use it in GitHub Desktop.
3 ways to change from CR+LF to LF
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
perl -pi -e 's/\r\n/\n/g' input.file |
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
sed -i -e 's/\r\n/\n/g' input.file |
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 folder/ -type f -exec sed -i -e 's/\r\n/\n/g' {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment