tar command

atark at thepipeline.net atark at thepipeline.net
Wed Jul 4 10:29:44 PDT 2001

Actually neither one works well if you have any plain *.gz files.  Try:

'for i in *.tar.gz; do tar xzf $i; done;'

atark at thepipeline.net

On Wednesday 04 July 2001 03:08 pm, you wrote:
> > i.e. "ls *.gz | mawk {'system ("tar xzf " $1 )'}" is _great_ to unpack
> > all tar-gz packed files in one dir, no typing tar xzf filename.tar.gz
> > over and over again till you have unpacked everything. same for bzip2,
> > just use ls *.bz2 and tar xyf
> You really like awk, don't you?
> 'for i in *gz; do tar xzf $i; done;'
> Does the same thing, but requires nothing past bash and is faster to type
> (less punctuation).  It doesn't really matter though - one of the great
> things about Linux is the fact that there are usually about three hundred
> ways to do anything simple.  Thus, you're likely to find one you like <g>.
> Walter Mundt
> emage at spamcop.net
Unsubscribe: send email to lfs-discuss-request at linuxfromscratch.org
and put unsubscribe in the subject header of the message

More information about the lfs-dev mailing list