Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Apr 2003 18:47:41 +0100
From:      Wayne Pascoe <freebsd@penguinpowered.org.uk>
To:        Kenzo <kenzo_chin@hotmail.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: gunzip question
Message-ID:  <20030408174741.GA80415@marvin.penguinpowered.org.uk>
In-Reply-To: <DAV22d6Lc8xzx4tNrGU0000934f@hotmail.com>
References:  <DAV22d6Lc8xzx4tNrGU0000934f@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Apr 08, 2003 at 10:24:20AM -0500, Kenzo wrote:
> I want to be able to search within a gzip file without having to uncompress
> it.
> say I have a file name one.gz I want to not only view the content but to
> search in it.
> if I do " gunzip -c one.gz | more " it will display the content, but not
> give me the option to search.
> Is there a way to do that?
> I hope my question wasn't too confusing.

If you do zcat one.gz | less
you should then be able to use all the functionality of less, which
includes being able to search through the ouput.

HTH

-- 
Wayne Pascoe



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030408174741.GA80415>