[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Tar for Idiots Question



On Thu, May 18, 2000 at 11:25:02AM -0400, Bob Bernstein wrote:
> I have a slew of tar.gz files in a directory, and I want to unpack them in
> that directory. I can't seem to "wildcardize" the usual commands I use to do
> this:
> 
> tar xzvf *tar.gz  (and)
> 
> gzip -dc *gz | tar xvf - 
> 
> both fail to do it.
> 
> Any help, praise, or blame would be welcome at this point!

Yet another alternative to prior suggestions:

    $ ls *.tar.gz | xargs -n 1 tar xzvf

-- 
Karsten M. Self <kmself@ix.netcom.com>         http://www.netcom.com/~kmself
  Evangelist, Opensales, Inc.                       http://www.opensales.org
   What part of "Gestalt" don't you understand?      Debian GNU/Linux rocks!
     http://gestalt-system.sourceforge.net/      K5: http://www.kuro5hin.org
GPG fingerprint: F932 8B25 5FDD 2528 D595  DC61 3847 889F 55F2 B9B0

Attachment: pgpnqeoKUwoxX.pgp
Description: PGP signature


Reply to: