Compressed Tar : stop on first occurrence

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

 



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....

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

My distribution is slackware.

Thanks in advance,
Mauricio
begin:vcard
fn:Mauricio Silveira
n:Silveira;Mauricio
org;quoted-printable:FSN do Brasil - Consultoria em Inform=C3=A1tica;Software Development / Networking
adr:;;;;;;Brazil
email;internet:msilveira@xxxxxxxxxxx
title:Linux Consultant / Developer
tel;cell:11-9949-1040
url:http://www.fsndobrasil.com
version:2.1
end:vcard


[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