christopher j bottaro wrote: > hello, > if i have a bunch of .tar.gz files in a dir, how can i use tar to extract them > all? tar xzf *.tar.gz doesn't work...=/
it does not work cause tar thinks that the second tar.gz file is the one to decompress from the tar file, that is due to the way bash expand the command (tar xvf file1.tar.gz file2.tar.gz ...), so you need something like: for i in *.tar.gz; do echo Untarring: $i;tar xzf $i; done > thanks for the info, > christopher > P.S. couldn't find anything about this in the man pages. -- ------------------------------------------------- | Renzo Alejandro Granados | | Gerente Técnico - Conectiva - Bogotá Colombia| | www.conectiva.com.co [EMAIL PROTECTED] | | Cra 11 71-73, Of 404 PBX 321-2333 | ------------------------------------------------- _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list