Date: Sat, 30 Aug 2003 12:21:45 -0400 From: Chuck Swiger <cswiger@mac.com> To: David Kelly <dkelly@hiwaay.net> Cc: FreeBSD-Questions@FreeBSD.org Subject: Re: zmore for bzip2? Message-ID: <3F50CF19.5030200@mac.com> In-Reply-To: <20030829235939.GE42454@grumpy.dyndns.org> References: <200308271100.42049.dkelly@HiWAAY.net> <20030828043747.GA1206@terminator.client.attbi.com> <20030829235939.GE42454@grumpy.dyndns.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F50CF19.5030200>