Skip to content

Instantly share code, notes, and snippets.

@dtuite
Created April 11, 2013 15:35
Show Gist options
  • Save dtuite/5364409 to your computer and use it in GitHub Desktop.
Save dtuite/5364409 to your computer and use it in GitHub Desktop.
Find ASCII chars in a directory. Useful for when you're getting encoding errors and you're not sure exactly where they're coming from.
cat lib/tasks/* | perl -n -e 'print if /[^\x00-\x7F]/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment