Skip to content

Instantly share code, notes, and snippets.

@lukemartin
Created November 14, 2012 11:44
Show Gist options
  • Select an option

  • Save lukemartin/4071683 to your computer and use it in GitHub Desktop.

Select an option

Save lukemartin/4071683 to your computer and use it in GitHub Desktop.
Shell: Unzip all zips in directory with containing folder
#!/bin/bash
for f in *.zip; do
dir=${f%.zip}
unzip -d "./$dir" "./$f"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment