Skip to content

Instantly share code, notes, and snippets.

@bandicoot86
Created October 30, 2014 19:46
Show Gist options
  • Save bandicoot86/d42faf98ce9e700d14c7 to your computer and use it in GitHub Desktop.
Save bandicoot86/d42faf98ce9e700d14c7 to your computer and use it in GitHub Desktop.
Replace new lines with \n
awk '{printf("%s\\n",$0)} END {print ""}' 1.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment