From owner-freebsd-questions@FreeBSD.ORG Sun Jan 11 12:36:52 2004 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 013AB16A4CE for ; Sun, 11 Jan 2004 12:36:52 -0800 (PST) Received: from madras.dyndns.org (dsl-137.241.240.220.dsl.comindico.com.au [220.240.241.137]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6CF1043D31 for ; Sun, 11 Jan 2004 12:36:50 -0800 (PST) (envelope-from ggop@madras.dyndns.org) Received: from madras.dyndns.org (localhost [127.0.0.1]) by madras.dyndns.org (8.12.9p1/8.12.9) with ESMTP id i0BKZXL9005693; Mon, 12 Jan 2004 07:35:33 +1100 (EST) (envelope-from ggop@madras.dyndns.org) Received: (from ggop@localhost) by madras.dyndns.org (8.12.9p1/8.12.9/Submit) id i0BKZXEi005692; Mon, 12 Jan 2004 07:35:33 +1100 (EST) Date: Mon, 12 Jan 2004 07:35:32 +1100 From: Gautam Gopalakrishnan To: "rob.c" Message-ID: <20040111203532.GA5672@madras.dyndns.org> References: <000d01c3d435$3bd86b20$0800000a@globalvc.co.uk> <002301c3d7b8$2f2257c0$0207a8c0@coconut> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <002301c3d7b8$2f2257c0$0207a8c0@coconut> User-Agent: Mutt/1.4.1i cc: freebsd-questions@freebsd.org Subject: Re: Alternatives to zcat ? 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: Sun, 11 Jan 2004 20:36:52 -0000 On Sat, Jan 10, 2004 at 08:27:35PM -0000, rob.c wrote: > Hello All, > > I used to peruse my logs (when prompted by events in the periodic script > output emails) using zcat, however i've just tried again for the first time > recently and appears the logfile compression format has changed. This is in > turn means that i can no longer use a command like "zcat > | grep searchstringfromoutputemail" as it just > renders a "not in gzip format" message. So my question really is ... is > there an alternative to zcat that can read .bz2 compression or do i have to > go back to unziping to a directory first and deleting it afterwards ? /usr/bin/bzcat