Created
April 27, 2016 17:36
-
-
Save komalsrathi/b514b067734697de5a56e805b13f3ece to your computer and use it in GitHub Desktop.
Replace special character ^M to newline in files generated in OSX.
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
# usage: bash replace_nlchar.sh <filename> | |
perl -pi -e 's/\r/\n/g' $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment