Skip to content

Instantly share code, notes, and snippets.

Created July 8, 2014 04:59
Show Gist options
  • Save anonymous/e54d54b6ef2d62d65f55 to your computer and use it in GitHub Desktop.
Save anonymous/e54d54b6ef2d62d65f55 to your computer and use it in GitHub Desktop.
# Pipe the output of unzip -t into this to fix it spraying files all over your precious directory, rather than deflating into one nice directory like RMS intended.
# Also, there's probably a better way to do this, but it's 1AM.
awk '/OK/ { if (NF > 3) print "\42"$2,$(NF-1)"\42" ; else print "\42"$2"\42" }' | xargs rm -r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment