tar command

emage at spamcop.net emage at spamcop.net
Wed Jul 4 12:08:51 PDT 2001


> 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