[ale] Untar a bunch of .tar.gz and .tgz files

Mike Murphy mike at tyderia.net
Wed Sep 29 15:56:02 EDT 2004


The globs are irritating the shell and/or tar. One quick way to to di it 
(assuming gnu tar and a bourne shell like shell):

dir = dir with files in them

cd $dir; for file in `ls *.tar.gz`; do tar -zxf $file; done

Mike


Trey Sizemore wrote:
> If I have a folder containing a number of .tar.gz and .tgz files and wish to 
> untar them all, how would I go about doing so?  I've tried tar xvfz *.tar.gz 
> and tar xvfz *.gz as well as several other variations, but they all just 
> error out with something like all the files listed saying 'Not found in 
> archive'
> 
> Thanks.
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale

-- 

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Mike Murphy
781 Inman Mews Drive Atlanta GA 30307
Landline: 404-653-1070
Mobile: 404-545-6234
Email: mike at tyderia.net
AIM: mmichael453
JDAM: 33:45:14.0584N  84:21:43.038W
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+



More information about the Ale mailing list