find /home/webfiles/tmpfiles/ -type f | while read file do DIR=$(dirname $file) cd $DIR FILE=$(basename $file) tar -uvf /tmp/matt.tar $FILE cd $OLDPWD done gzip -9 /tmp/matt.tar # forever zorked
In reply to Re: Zip only files, not directory hierarchy.
by mhearse
in thread Zip only files, not directory hierarchy.
by desertrat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |