Created
December 7, 2015 22:37
-
-
Save bdunnette/58b33231ec92cce113fa to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
echo "Extracting HTML Files" | |
for f in ~/*.zip | |
do | |
unzip -o "$f" '*.html' | |
done | |
zl=0 | |
while [ $zl -lt 10 ] | |
do | |
echo "Extracting Zoom Level $zl" | |
for f in ~/*.zip | |
do | |
fn=$(basename "$f") | |
i="${fn%.*}" | |
echo " $f..." | |
unzip -oq "$f" "$i/$zl/*" | |
done | |
((zl++)) | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment