Skip to content

Instantly share code, notes, and snippets.

@dpflug
Created July 8, 2014 05:01
Show Gist options
  • Save dpflug/e4cccbb3e38a1d0502b0 to your computer and use it in GitHub Desktop.
Save dpflug/e4cccbb3e38a1d0502b0 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