Skip to content

Instantly share code, notes, and snippets.

@trcook
Created December 11, 2014 15:08
Show Gist options
  • Save trcook/e3656299f7474e9d2ae6 to your computer and use it in GitHub Desktop.
Save trcook/e3656299f7474e9d2ae6 to your computer and use it in GitHub Desktop.
remove non-printable garbage from file
tr -cd '\11\12\15\40-\176' < file-with-binary-chars > clean-file
# from http://alvinalexander.com/blog/post/linux-unix/how-remove-non-printable-ascii-characters-file-unix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment