-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, 6 Nov 2002 05:01:36 -0800, Drew Poulin wrote:

> I'm trying to extract the files from 108 .tar archives located in a
> single directory. 
> 
> The tar info page says that tar can't handle a wildcard like * or ? by
> itself; it says that preceding the * or ? with a backslash or
> enclosing the argument in quotes usually works.  But neither
> 
> tar -xvf \*.tar
> 
> nor 
> 
> tar -xvf "*.tar"
> 
> does the trick for me.
> 
> Does anyone know how to extract multiple archives with a single
> command, or is this just something tar can't do?  

  ls *.tar | xargs -n 1 tar xvf

- -- 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)

iD8DBQE9ySIy0iMVcrivHFQRAsgfAJ4xwnByn7085xjvXiq+g5XrdUDsfgCbBbcx
Om2LtNLfmPDW/XiA5X6WgpA=
=38gF
-----END PGP SIGNATURE-----



-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@;redhat.com?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to