Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Jun 2006 11:10:51 +0100
From:      Alex Zbyslaw <xfb52@dial.pipex.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: man pages in plain text - how to?
Message-ID:  <448E8F2B.6000400@dial.pipex.com>
In-Reply-To: <20060612.142554.713.28485@webmail13.nyc.untd.com>
References:  <20060612.142554.713.28485@webmail13.nyc.untd.com>

next in thread | previous in thread | raw e-mail | index | archive | help
gs_stoller@juno.com wrote:

>	On  Fri, 9 Jun 2006 15:28:07 -0400 , Charles Swiger wrote:
><snip>
>  
>
>>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.)
>>>      
>>>
><snip>
>	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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?448E8F2B.6000400>