Created
September 7, 2017 14:57
-
-
Save tcollins/2bd14bbfac8093eea123f969c3796d85 to your computer and use it in GitHub Desktop.
A simple bash script to unzip a directory of zip into separate directories based on the zip file name
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
FILES=zips/*.zip | |
for f in $FILES | |
do | |
DIRNAME=`basename $f .zip` | |
mkdir $DIRNAME | |
unzip $f -d $DIRNAME | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment