On Thu, Sep 05, 2002 at 07:28:11PM -0400, [EMAIL PROTECTED] wrote: > I'm looking for a command or script which would work from the top dir like: > > $ tar -Rxz *.tar.gz
find . -name "*.tar.gz" | while read TGZFILE do CURDIR="$PWD"; cd `dirname $TGZFILE`; tar -xvf `basename $TGZFILE` cd $CURDIR; done; Note that, depending on your shell, you could dispense with the CURDIR assignment and use "cd -". Cheers, -- Dave Ihnat [EMAIL PROTECTED] -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list