Skip to content

Instantly share code, notes, and snippets.

@aaronmccall
Created September 18, 2012 17:25
Show Gist options
  • Save aaronmccall/3744454 to your computer and use it in GitHub Desktop.
Save aaronmccall/3744454 to your computer and use it in GitHub Desktop.
command to convert \r\n to \n line endings
tr '\015' '\n' < file_with_carriage_returns.txt > out && mv out file_with_carriage_returns.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment