Created
July 25, 2013 13:53
-
-
Save silviopaganini/6079869 to your computer and use it in GitHub Desktop.
Clean up the directories for Gigapix Image
This file contains 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
# 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