From owner-freebsd-questions@FreeBSD.ORG Tue Apr 8 10:37:32 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 039F037B401 for ; Tue, 8 Apr 2003 10:37:32 -0700 (PDT) Received: from smtp.mailbox.co.uk (smtp.mailbox.co.uk [195.82.125.32]) by mx1.FreeBSD.org (Postfix) with ESMTP id CEFB843FAF for ; Tue, 8 Apr 2003 10:37:30 -0700 (PDT) (envelope-from wayne.pascoe@penguinpowered.org.uk) Received: from [212.18.244.168] (helo=marvin.penguinpowered.org.uk) by smtp.mailbox.co.uk with esmtp (Exim 3.36 #1) id 192x2H-0005MH-00; Tue, 08 Apr 2003 18:37:29 +0100 Received: from waynep by marvin.penguinpowered.org.uk with local (Exim 3.33 #1) id 192xC9-000KvZ-00; Tue, 08 Apr 2003 18:47:41 +0100 Date: Tue, 8 Apr 2003 18:47:41 +0100 From: Wayne Pascoe To: Kenzo Message-ID: <20030408174741.GA80415@marvin.penguinpowered.org.uk> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i X-System: FreeBSD i386 with kernel 4.8-STABLE Sender: User Waynep cc: freebsd-questions@FreeBSD.ORG Subject: Re: gunzip question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Apr 2003 17:37:32 -0000 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