Skip to content

Instantly share code, notes, and snippets.

@silviopaganini
Created July 25, 2013 13:53
Show Gist options
  • Save silviopaganini/6079869 to your computer and use it in GitHub Desktop.
Save silviopaganini/6079869 to your computer and use it in GitHub Desktop.
Clean up the directories for Gigapix Image
# directory with the gigapic
cd giga
for (( i = 2; i < 11; i++ )); do
rm $i.html
cd $i"_img"
echo `pwd`
rm ImageProperties.xml
rm zoomifyViewer.swf
mkdir a
for (( e = 0; e < 7; e++ )); do
echo TileGroup$e/*
mv -i TileGroup$e/* a
rm -rf TileGroup$e
done
mv a/* .
rm -rf a
cd ..
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment