Created
November 14, 2012 11:44
-
-
Save lukemartin/4071683 to your computer and use it in GitHub Desktop.
Shell: Unzip all zips in directory with containing folder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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