Skip to content

Instantly share code, notes, and snippets.

@dyerw
Created February 9, 2015 20:49
Show Gist options
  • Save dyerw/3621f291529acc309972 to your computer and use it in GitHub Desktop.
Save dyerw/3621f291529acc309972 to your computer and use it in GitHub Desktop.
Unix Command - Removes all binary files from dir, leaving plaintext files
file * | grep -v text | cut -d':' -f1 | xargs rm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment