Unpacking large number of tar archives

Jason Gurtz flare at downcity.net
Sat Jul 29 20:56:12 PDT 2000


Or what if you find you have some smaller, but none the less, pesky *.bz2
files?

Just add a section like the following to the below

for tarbz2 in ./*.tar.bz2; do
    tar --use-compress-prog=bzip2 -xvf $tarbz2
done

~Jason

-----Original Message-----
From: owner-lfs-discuss at pcrdallas.com
[mailto:owner-lfs-discuss at pcrdallas.com]On Behalf Of Thomas T. Veldhouse
Sent: Saturday, July 29, 2000 5:24 PM
To: lfs-discuss at linuxfromscratch.org
Subject: Re: Unpacking large number of tar archives


#!/bin/sh

# begin file

for targz in ./*.tar.gz; do
    tar xvzf $targz
done

for tgz in ./*.tgz; do
    tar xvzf $tgz
done

# end file

Tom Veldhouse
veldy at veldy.net



----- Original Message -----
From: "Neoklis Kyriazis" <neoklis at my-deja.com>
To: <lfs-discuss at linuxfromscratch.org>
Sent: Saturday, July 29, 2000 12:58 PM
Subject: Unpacking large number of tar archives


> Hi
>
> I have been trying to find a way to unpack a large collection of
> tar archives (the source codes) by using something like
> tar zxvf *.tgz but tar seems to dislike this. gunzip *.tgz works
> though, but tar seems to want the files one at a time. Is there
> a way to avoid upacking archives one at a time manually?
>
> TIA
>
> ---
> Regards
>
>
> Neoklis Kyriazis
>
>
> --== Sent via Deja.com http://www.deja.com/ ==--
> Before you buy.
> --
> Mail archive: http://www.pcrdallas.com/mail-archives/lfs-discuss
> IRC access: server: irc.linuxfromscratch.org port: 6667 channel: #LFS
> Unsubscribe: email lfs-discuss-request at linuxfromscratch.org and put
> "unsubscribe" (without the quotation marks) in the body of the message
> (no subject is required)
>

--
Mail archive: http://www.pcrdallas.com/mail-archives/lfs-discuss
IRC access: server: irc.linuxfromscratch.org port: 6667 channel: #LFS
Unsubscribe: email lfs-discuss-request at linuxfromscratch.org and put
"unsubscribe" (without the quotation marks) in the body of the message
(no subject is required)

--
Mail archive: http://www.pcrdallas.com/mail-archives/lfs-discuss
IRC access: server: irc.linuxfromscratch.org port: 6667 channel: #LFS
Unsubscribe: email lfs-discuss-request at linuxfromscratch.org and put
"unsubscribe" (without the quotation marks) in the body of the message
(no subject is required)



More information about the lfs-dev mailing list