#!/bin/sh
rm -rf /home/saturnero/$1-reorg
mkdir -p /home/saturnero/$1-reorg
COUNT=0
for i in `find $1 -type f`
do
 cp -v $i /home/saturnero/$1-reorg/`printf "%06d\n" $COUNT`
 COUNT=$(($COUNT+1))
done
tar zcvf /home/saturnero/public_html/$1-reorg.tar.gz /home/saturnero/$1-reorg/
rm -rf /home/saturnero/$1-reorg
