Skip to content

Instantly share code, notes, and snippets.

@bdunnette
Last active August 29, 2015 14:00
Show Gist options
  • Select an option

  • Save bdunnette/11180743 to your computer and use it in GitHub Desktop.

Select an option

Save bdunnette/11180743 to your computer and use it in GitHub Desktop.
Untar WSI images in zoom level order
#!/bin/sh
echo "Extracting HTML Files"
for f in ~/*.tar
do
tar xvf "$f" --wildcards '*.html'
done
for n in 0 1 2 3 4 5 6 7 8 9
do
echo "Extracting Zoom Level $n"
for f in ~/*.tar
do
echo " $f..."
tar xf "$f" --wildcards "*/$n/*"
done
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment