Skip to content

Instantly share code, notes, and snippets.

@bdunnette
Created December 7, 2015 22:37
Show Gist options
  • Save bdunnette/58b33231ec92cce113fa to your computer and use it in GitHub Desktop.
Save bdunnette/58b33231ec92cce113fa to your computer and use it in GitHub Desktop.
#!/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