From owner-freebsd-questions@FreeBSD.ORG Sat Aug 30 09:21:49 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 6BD5E16A4E6 for ; Sat, 30 Aug 2003 09:21:49 -0700 (PDT) Received: from pop017.verizon.net (pop017pub.verizon.net [206.46.170.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id EE7F643FA3 for ; Sat, 30 Aug 2003 09:21:46 -0700 (PDT) (envelope-from cswiger@mac.com) Received: from mac.com ([68.237.14.199]) by pop017.verizon.net (InterMail vM.5.01.05.33 201-253-122-126-133-20030313) with ESMTP id <20030830162146.MHZO27671.pop017.verizon.net@mac.com>; Sat, 30 Aug 2003 11:21:46 -0500 Message-ID: <3F50CF19.5030200@mac.com> Date: Sat, 30 Aug 2003 12:21:45 -0400 From: Chuck Swiger Organization: The Courts of Chaos User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: David Kelly References: <200308271100.42049.dkelly@HiWAAY.net> <20030828043747.GA1206@terminator.client.attbi.com> <20030829235939.GE42454@grumpy.dyndns.org> In-Reply-To: <20030829235939.GE42454@grumpy.dyndns.org> X-Enigmail-Version: 0.76.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Authentication-Info: Submitted using SMTP AUTH at pop017.verizon.net from [68.237.14.199] at Sat, 30 Aug 2003 11:21:46 -0500 cc: FreeBSD-Questions@FreeBSD.org Subject: Re: zmore for bzip2? 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: Sat, 30 Aug 2003 16:21:49 -0000 David Kelly wrote: [ ... ] > Yes, of course. But zmore is smart enough to figure out what to do with > several compression techniques, or even to handle non-compressed files > very trivially and without hassle. 'zmore' is a simple shell script which calls "gzcat | ${PAGER-more}". One solution to your problem, or at least a solution, would be to change zmore to look for a trailing bz/bz2 or invoke bzcat instead. Another would be to change the sources of gzip to recognize the bzip2 magic files bytes, extending the detection of gzip versus classic LZH used by compress. Compression formats are similar to graphic image formats in the PBMPLUS sense. -- -Chuck