Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Oct 1997 21:46:09 -0700 (PDT)
From:      Annelise Anderson <andrsn@andrsn.stanford.edu>
To:        John-David Childs <jdc@nterprise.net>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Saving a man page to a text file
Message-ID:  <Pine.BSF.3.96.971009214358.27017B-100000@andrsn.stanford.edu>
In-Reply-To: <19971009194037.43482@denver.net>

next in thread | previous in thread | raw e-mail | index | archive | help


On Thu, 9 Oct 1997, John-David Childs wrote:

> On Thursday October  9, 1997, John McLaughlin <John.McLaughlin@Acucobol.IE>
>  had this to say about "Re: Saving a man page to a text file":
> 
> > 
> >  > On Mon, Oct 06, 1997 at 10:24:13PM -0500, dkelly@hiwaay.net wrote:
> > >> > How can I save the contents os a man page to a text file without
> > >> any > escape codes included?
> > 
> > 	How about:
> > 
> > 		man -P cat foo > foo.txt
> > 
> 
> Nope...doesn't work.  Control codes are still there.
> 
> Neither does man -t xxxx > xxxx.ps (well, it works if you have a
> postscript printer ;)
> 
> So far, the only thing I've found that works for converting man
> pages to ASCII text files is rman...available in a port
> or package near you! :)

man xxx | col -b > xxx.txt

works for me....try it, if it doesn't work let me know, 'cause
I've got it in the guide for newusers.

	Annelise





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.971009214358.27017B-100000>