Skip to content

Instantly share code, notes, and snippets.

@vladzloteanu
Created October 14, 2011 10:33
Show Gist options
  • Save vladzloteanu/1286780 to your computer and use it in GitHub Desktop.
Save vladzloteanu/1286780 to your computer and use it in GitHub Desktop.
Replace newlines in a file (using tr or perl)
perl -i -p -e 's/\n//' file
tr -d '\n' < file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment