3 # goes through the current directory (currently) and zips up any directories
4 # into an archive with the same name as the directory plus a time stamp.
6 source $FEISTY_MEOW_SCRIPTS/core/functions.sh
8 #hmmm: take a dir parameter to go to for this.
11 function flattenizer()
13 while read dirname; do
14 if [ ! -z "$dirname" ]; then
15 echo "flattening directory '$dirname'..."
16 zip -rm "${dirname}_$(date_stringer)" "$dirname" &>/dev/null
21 find $dir -mindepth 1 -maxdepth 1 -type d | flattenizer