Please follow postfix reply once established.

On Tue, Sep 05, 2000 at 08:06:18PM +0518, USM Bish wrote:
> On Mon, Sep 04, 2000 at 11:18:37PM -0700, [EMAIL PROTECTED] wrote:
> > 
> > |> Is there a way to search the contents of a tar.gz file withouth
> > |> having to extract everything.  Specifically, I want to determine
> > |> the disc-id of an audio CD, so I downloaded the freedb database in
> > |> tar.gz format.  Of course, it's a very large file.  I would like to
> > |> grep the contents to find the CD that I'm looking for, but I don't
> > |> want to extract everything.  I thought there would be a series of
> > |> piped commands that would allow me to do it, but I can't figure it
> > |> out.
> > 
> > If you use emacs, you can just visit the compressed tar file and
> > operate on it like any directory-tree. For example, put FOO.tar.gz in
> > some directory DIR. Ctl-x d DIR to run dired (the directory editor) on
> > DIR, move the cursor to FOO.tar.gz and type f. The contents of the
> > tarball will be displayed in the dired buffer and you can operate on
> > the files as if they had been uncompressed and extracted from the
> > archive, even though they haven't.
> > 
> 
> If you have Midnight Commander (mc) installed,  you can
> see the contents of a tar.gz file natively. If you need
> to read a specific file, mc does a temporary extract of
> the same and displays it for you.
> 
> If you have kde installed, kfm does the same.

Eazel also has this capability AFAIK.

Each of these methods (mc, emacs, kfm) required uncompressing the
archive to disk, generally /tmp.  It's very convenient (I've come to
love mc in the past month or so), but it's not always practical.

-- 
Karsten M. Self <kmself@ix.netcom.com>     http://www.netcom.com/~kmself
 Evangelist, Opensales, Inc.                    http://www.opensales.org
  What part of "Gestalt" don't you understand?   Debian GNU/Linux rocks!
   http://gestalt-system.sourceforge.net/    K5: http://www.kuro5hin.org
GPG fingerprint: F932 8B25 5FDD 2528 D595 DC61 3847 889F 55F2 B9B0

Attachment: pgphJIh7xzoQM.pgp
Description: PGP signature

Reply via email to