Skip to content

Instantly share code, notes, and snippets.

@tcollins
Created September 7, 2017 14:57
Show Gist options
  • Save tcollins/2bd14bbfac8093eea123f969c3796d85 to your computer and use it in GitHub Desktop.
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
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