From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mauricio Silveira Subject: Compressed Tar : stop on first occurrence Date: Fri, 20 Oct 2006 10:44:40 -0200 Message-ID: <4538C4B8.8020707@linuxbr.com> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------060600030605030204060708" Return-path: In-Reply-To: Sender: linux-admin-owner@vger.kernel.org List-Id: To: 'Linux Admin Mailing List' This is a multi-part message in MIME format. --------------060600030605030204060708 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 --------------060600030605030204060708 Content-Type: text/x-vcard; charset=utf-8; name="msilveira.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="msilveira.vcf" 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@linuxbr.com title:Linux Consultant / Developer tel;cell:11-9949-1040 url:http://www.fsndobrasil.com version:2.1 end:vcard --------------060600030605030204060708--