On Fri Jun 16 2000 at 08:48, Antony Stace wrote:

> How can I convert a unix man page to plain text? ie
> 
> man ls > /tmp/ls_man
> 
> produces a file /tmp/ls_man with lots of formatting code in it.  I want
> to get ride of this formatting code.

As someone else has suggested:

        man ls | col -b > /tmp/ls.txt

If you want a very nicely formatted man page:

        man -t ls | lpr

Even better:

        man -t ls | mpage -2 -P

Cheers
Tony

Reply via email to