[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: man files to text editor



* Jan Minar <Jan.Minar@seznam.cz> [2003-12-17 16:23]:
> On Wed, Dec 17, 2003 at 01:07:35PM -0500, Lou Losee wrote:
> > * Gruessle <debian@orces.com> [2003-12-17 12:21]:
> > > 
> > > Is there a way I can open man files in a text editor.
> > > I like to print one but have not configured my printer jet.
> > > So I will email it to my other pc.
> > > 
> > Try man xxx | col -b > text-filename
> 
> This actually should not work, you have to tell man(1) it should send the
> formatted manpage to stdout, instead of messing with the pager.
> Replace `foo' with the desired program name.
> 
> $ man --pager cat foo | col -b > text-filename
> 

Well perhaps it should not work, but it does.  I have used the construct
for years now.  In chasing down the man pager, it appears to default to
'less'.

Try it you may like it - simple and quick.

Lou



Reply to: