Originally Posted by palmtree5
for SUBDIR2 in `ls -d1 ./*`
do ZIPFILE=`basename $SUBDIR2`
zip -r $ZIPFILE.zip $SUBDIR2
Originally Posted by MoodyBlues
There's potential for all sorts of variations. Damn, I love *nix.
Something I just found out the hard way is this doesn't deal with directories that contain spaces in their names...