From owner-freebsd-questions Sat Aug 1 10:10:48 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA28053 for freebsd-questions-outgoing; Sat, 1 Aug 1998 10:10:48 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from postal.isc.rit.edu (postal.isc.rit.edu [129.21.3.113]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA28038 for ; Sat, 1 Aug 1998 10:10:43 -0700 (PDT) (envelope-from aaron@csh.rit.edu) Received: from thud.homenet by osfmail.isc.rit.edu (PMDF V5.1-10 #27553) with ESMTP id <0EX0008EAT1L55@osfmail.isc.rit.edu> for freebsd-questions@FreeBSD.ORG; Sat, 1 Aug 1998 13:10:34 -0400 (EDT) Received: (from aaron@localhost) by thud.homenet (8.8.7/8.8.7) id NAA00460; Sun, 02 Aug 1998 13:10:59 -0400 (EDT envelope-from aaron) Content-return: allowed Date: Sun, 02 Aug 1998 13:10:58 -0400 From: Aaron Jeremias Luz Subject: Re: Reading *.ascii.gz: any trick? In-reply-to: ; from Spidey on Sat, Aug 01, 1998 at 09:50:59AM -0400 To: Spidey Cc: Questions=answers Reply-to: aaron@csh.rit.edu Message-id: <19980802131058.33548@homenet> MIME-version: 1.0 X-Mailer: Mutt 0.84e Content-type: text/plain; charset=us-ascii References: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, Aug 01, 1998 at 09:50:59AM -0400, Spidey wrote: > Hello! > > I've got a stupid question. I just scan through the /usr/share/doc/ and I > found some interesting papers that I would like to read. However they're > disposed as: > > 01.setup/ 06.nfs/ 11.timedop/ > 02.config/ 07.lpd/ 12.timed/ > 03.fsck/ 08.sendmailop/ 18.net/ > 04.quotas/ 09.sendmail/ Title.ascii.gz > 05.fastfs/ 10.named/ contents.ascii.gz > > I *know* that I can do 'gunzip -c | more' to read them directly, but isn't > this format readable by something else? (i.e. info?) > > Any tips or suggestions welcome! > > Spidey You can configure less(1) to apply an abritrary filter to an input file. The filename is passed as a parameter to the filter, so you could write a case statement which applies different filters (ie: gunzip, tar, zipinfo, etc) based on filename extension. You could even use file(1) to identify files without relying on the extension for clues. less is available as a port. However, I like the explicitness of zmore(1). Filename extensions aren't universal, and sometimes I really want to see the raw data. Aaron To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message