Kein Betreff


Fr Feb 12 14:53:16 CET 1999


>From guckes  Fri Feb 12 15:53:17 1999
Return-Path: <owner-linux-l at mlists.in-berlin.de>
Delivered-To: guckes at math.fu-berlin.de
Received: (qmail 10867 invoked from network); 12 Feb 1999 14:53:15 -0000
Received: from gnu.in-berlin.de (HELO mail.vr.IN-Berlin.DE) (192.109.42.4)
  by leibniz.math.fu-berlin.de with SMTP; 12 Feb 1999 14:53:15 -0000
Received: from localhost (daemon at localhost)
	by mail.vr.IN-Berlin.DE (8.9.1a/8.9.1) with SMTP id PAA14277;
	Fri, 12 Feb 1999 15:31:29 +0100 (CET)
	(envelope-from owner-linux-l at mlists.in-berlin.de)
Received: by GNU.IN-Berlin.DE (bulk_mailer v1.11); Fri, 12 Feb 1999 15:31:25 +0100
Received: (from majordom at localhost)
	by mail.vr.IN-Berlin.DE (8.9.1a/8.9.1) id PAA14044
	for mlists-in-berlin-de-outgoing-linux-l; Fri, 12 Feb 1999 15:25:50 +0100 (CET)
	(envelope-from owner-linux-l at mlists.in-berlin.de)
Date: Fri, 12 Feb 1999 15:23:52 +0100 (MET)
From: Oliver Bandel <oliver at first.in-berlin.de>
To: linux-l at mlists.in-berlin.de
Subject: Re: linux-l: tgz-Files greppen
In-Reply-To: <Pine.LNX.3.96.990212103057.1099A-100000 at tntw.regellos.de>
Message-ID: <Pine.LNX.3.95.990212151627.355A-100000 at first.in-berlin.de>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=ISO-8859-1
Content-Transfer-Encoding: 8BIT
Sender: owner-linux-l at mlists.in-berlin.de
Reply-To: linux-l at mlists.in-berlin.de
Status: O
Content-Length: 688
Lines: 29

Hi!

On Fri, 12 Feb 1999, Volker Mueller wrote:

> On Fri, 12 Feb 1999, Oliver Bandel wrote:
> 
> >Wie kann man auf einfache Weise in tgz-Files greppen?
> 
> Nur so als (ungetestete) Idee:
> 
> cat <tarfile.tgz> | tar -xzf - | grep [opts] <pattern>

Ja, das mit dem "-" ist schon nicht schlecht (die Grundidee
stimmt ja), aber es bezieht sich leider auf stdin.

Die obige Befehlssequenz wirft mir leider die Files auf die Platte.

Was man bräuchte ist, stdout auf eine Pipe zu legen.
Kann tar das nicht?

Beim komprimieren geht es seltsamerweise, zum Beispiel mit:

   tar -cz filename > outfile.tgz

Aber beim auspacken habe ich noch nie was auf stdout bekommen. :-(


Tschüß,
   Oliver



Mehr Informationen über die Mailingliste linux-l