Ken Irving wrote:
> 
> On Tue, Jul 25, 2000 at 08:42:56PM -0600, SoloCDM wrote:
> 
> > Bret Hughes wrote:
> > >
> > > SoloCDM wrote:
> > >
> > > > Is there an efficient way of searching tarballs for information and
> > > > displaying the filename associated with the results?  I'm familiar
> > > > with most of the "z" filenames (zless, zcat, ...).
> > >
> > > I am not real sure what you are looking for but I use midnight commander
> > > to browse tarballs.
> > > type at the command line:
> > > mc
> > > and then ues the arrow keys to navigate to the tarball (enter on a
> > > directory will enter it) treat the tarball file just like a directory.
> > > You can then use the builtin editor to view files copy one out of the
> > > tarball to another place on the drive.  Really quite a powerfull tool.
> >
> > My intent is to make it automated in a bash script to search for a
> > subject.
> 
> Is this what you're looking for?
> 
>     #!/bin/sh
> 
>     F=$1
>     if [ "$F" = "" ]; then exit 1; fi
> 
>     PAT=$2
>     if [ "$PAT" = "" ]; then PAT="."; fi
> 
>     less $F | grep $PAT
> 
> I just use less or 'tar tzvf' to list the contents, and grep to select
> amoung them.

I'm trying to get the contents within the files of the file tar-red
and gzip-ped.  I used zcat, but it lists all the contents of all the
files in the tar-red and gzip-ped file as one file; therefore, I'm not
able to discern the file that goes with the information requested.

*********************************************************************
Signed,
SoloCDM


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to