From owner-freebsd-questions@FreeBSD.ORG Tue Jun 13 10:10:55 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 3C75016A479 for ; Tue, 13 Jun 2006 10:10:55 +0000 (UTC) (envelope-from xfb52@dial.pipex.com) Received: from smtp-out2.blueyonder.co.uk (smtp-out2.blueyonder.co.uk [195.188.213.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1BB0843D55 for ; Tue, 13 Jun 2006 10:10:53 +0000 (GMT) (envelope-from xfb52@dial.pipex.com) Received: from [172.23.170.137] (helo=anti-virus01-08) by smtp-out2.blueyonder.co.uk with smtp (Exim 4.52) id 1Fq5rI-0003nw-9W; Tue, 13 Jun 2006 11:10:52 +0100 Received: from [80.192.24.19] (helo=[192.168.0.2]) by asmtp-out6.blueyonder.co.uk with esmtp (Exim 4.52) id 1Fq5rH-0007qu-Ph; Tue, 13 Jun 2006 11:10:51 +0100 Message-ID: <448E8F2B.6000400@dial.pipex.com> Date: Tue, 13 Jun 2006 11:10:51 +0100 From: Alex Zbyslaw User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-GB; rv:1.7.13) Gecko/20060515 X-Accept-Language: en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20060612.142554.713.28485@webmail13.nyc.untd.com> In-Reply-To: <20060612.142554.713.28485@webmail13.nyc.untd.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: man pages in plain text - how to? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jun 2006 10:10:55 -0000 gs_stoller@juno.com wrote: > On Fri, 9 Jun 2006 15:28:07 -0400 , Charles Swiger wrote: > > > >>On Jun 9, 2006, at 3:01 PM, Wayne wrote: >> >> >>>Was wondering how to get "man" to output pages in plain text? I want >>>the basic formating (indentation & whatnot) but NOT the bold and other >>>special effects. Just ascii text I can grep through. I tried setting >>>the terminal type to "dumb" and the stupid thing still tries to do >>>back-space overstrike bolding (jeesh - even LA-120s had fancier print >>>capabilities than that, IIRC.) >>> >>> > > The easiest way to do it, I believe, is with col . (Just try 'man >col' to check all the options.) I have used 'man topic | col -b' to >see the man page for topic with all the egregious stuff removed, and >I just append to the pipeline '>topic.man' if I want to save it. > > > > Or, e.g.: gzcat /usr/share/man/man1/man.1.gz | nroff -man -Tascii | colcrt Man is just calling nroff (unless there's a pre-cat-ed page). --Alex