All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mauricio Silveira <msilveira@linuxbr.com>
To: 'Linux Admin Mailing List' <linux-admin@vger.kernel.org>
Subject: Compressed Tar : stop on first occurrence
Date: Fri, 20 Oct 2006 10:44:40 -0200	[thread overview]
Message-ID: <4538C4B8.8020707@linuxbr.com> (raw)
In-Reply-To: <Pine.LNX.4.58.0610150922480.1087@yossarian.aniota.com>

[-- Attachment #1: Type: text/plain, Size: 558 bytes --]

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

[-- Attachment #2: msilveira.vcf --]
[-- Type: text/x-vcard, Size: 321 bytes --]

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


  parent reply	other threads:[~2006-10-20 12:44 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-15 16:23 possible SMTP attack: command=HELO/EHLO, count=3 (fwd) terry white
2006-10-15 18:40 ` Adrian C.
2006-10-16  7:48 ` Glynn Clements
2006-10-16 14:27   ` terry white
2006-10-20 12:44 ` Mauricio Silveira [this message]
2006-10-20 15:10   ` Compressed Tar : stop on first occurrence Hendrik Visage
2006-10-20 16:37   ` terry white
2006-10-20 18:31     ` Mauricio Silveira
2006-10-20 21:58       ` Glynn Clements
2006-10-20 18:40     ` Glynn Clements

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4538C4B8.8020707@linuxbr.com \
    --to=msilveira@linuxbr.com \
    --cc=linux-admin@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.