On 09/05/02, at 05:29 PM, Gordon Messmer <[EMAIL PROTECTED]> said:
>find . -type d | while read dir ; do
> pushd $dir
> for i in *.tar.gz; do
> tar zxf $i
> rm -f $i
> done
> popd
>done
That's a winner!
I just added:
echo $dir
to the inner loop for feedback.
The total count was 1194 subdirectories containing tarballs.
I really wasn't interested in extracting them one at a time,
or losing the dir structure. Now I can make a proper tarball!
Thanks to all!
--
-----------------------------------------------------------
Carl Brown [EMAIL PROTECTED]
------------------------------------------------------
He has ignorance written all over his face...
...and it's spelled wrong.
-Ike Garland
-----
--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list