Skip to content

Instantly share code, notes, and snippets.

@ableasdale
Created August 31, 2016 09:40
Show Gist options
  • Save ableasdale/2a02b28e4f2b8c4f2be93ec38387b277 to your computer and use it in GitHub Desktop.
Save ableasdale/2a02b28e4f2b8c4f2be93ec38387b277 to your computer and use it in GitHub Desktop.
Use tr -d to remove newlines ("\n" from a file
tr -d '\n' < file.txt > file2.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment