gunzip question

Wayne Pascoe freebsd at
Tue Apr 8 10:37:32 PDT 2003

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.


Wayne Pascoe

More information about the freebsd-questions mailing list