Gentoo Archives: gentoo-user

From: Grant Edwards <grante@××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: How to get plain ascii from "man"?
Date: Wed, 25 Mar 2009 22:22:23
Message-Id: gqeaq2$ov5$2@ger.gmane.org
In Reply to: [gentoo-user] How to get plain ascii from "man"? by Grant Edwards
1 On 2009-03-25, Grant Edwards <grante@××××.com> wrote:
2
3 > How do you get a plain ascii file (no backspacing, no escape
4 > sequences) out of "man"?
5
6 I know I can always drop down 2 levels and do somthing like this:
7
8 bzcat /usr/share/man/bash.1.bz2 | troff -Tascii -mandoc | grotty -bcu >man.txt
9
10 But, I'm surprised that there's no "higher level" method like
11 the trusty old command that worked for at least 20 years:
12
13 man bash | col -b >man.txt
14
15 --
16 Grant Edwards grante Yow! A can of ASPARAGUS,
17 at 73 pigeons, some LIVE ammo,
18 visi.com and a FROZEN DAQUIRI!!