Re: Compressed Tar : stop on first occurrence

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

 



On 10/20/06, Mauricio Silveira <msilveira@xxxxxxxxxxx> wrote:
Hi all,


I'm wondering if there's any way to get tar to stop immediately after
the extraction of a file on compressed tar files. eg: I pack a big tgz
with the file index.txt first so that when I run "tar xf file.tgz
--occurrence index.txt" it extracts "index.txt" but proceeds reading the
file. I wish tar stopped after extracting the intended file.

I know it works for non-compressed tar archives....

Perhaps try something like:
gzcat filename.tgz | tar .... and see if that "works", else the issue
is the piping effect
of the gzip/bzip2 for tar.


Any way of achieving this with compressed files... maybe a patch lying
around the net!?

My distribution is slackware.

Thanks in advance,
Mauricio





--
Hendrik Visage
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Newbie]     [Audio]     [Hams]     [Kernel Newbies]     [Util Linux NG]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Device Drivers]     [Samba]     [Video 4 Linux]     [Git]     [Fedora Users]

  Powered by Linux