$ man man | col -b > file.txt
--
andrei
you better edit the manpage SOURCE.
> --
> andrei
--
--
Peter Håkanson
Manet Networking (At the Riverside of Gothenburg, home of Volvo)
Sorry about my e-mail address, but i'm trying to keep spam out.
echo "peter (at) manet (dot) nu" | sed "s/(at)/@/g " | sed "s/(dot)/\./g"|sed "s/ //g"
O.K. Peter
I know what Andri meant as this is what people have done for years. Now you come a long
with this cryptic one liner.
What are you trying to say .. spit it out .. elaborate.
--
Bernie Chandler
http://www.nationwide.net/~bernie
Every manpage has a source written in nroff (or compatible format.)
Included in the source is "macro commands" that describes the final
format of the text.
Running nroff on the source generates the "manpages" in a human-comprahensible
format, adjusted to whatever your needs are.
Lets say you would like to print them but using a different paper size the
the standard US. Fine, locate the macro that desribes your page length,
change it, run nroff - ans voila, your manpages will fit nice on 72-lines
paper (used in sweden)
A snipped of a "typical" manpage might serve as example. I'll choose
a random selection - the "id" command from FreeBSD :
.Dd June 6, 1993
.Dt ID 1
.Os BSD 4.4
.Sh NAME
.Nm id
.Nd return user identity
.Sh SYNOPSIS
.Nm
.Op Ar user
.Nm id
.Fl G Op Fl n
.Op Ar user
.Nm id
.Fl P
.Op Ar user
.Nm id
.Fl g Op Fl nr
.Op Ar user
.Nm id
.Fl p
.Nm id
.Fl u Op Fl nr
.Op Ar user
.Sh DESCRIPTION
The
.Nm
utility displays the user and group names and numeric IDs, of the
calling process, to the standard output.
If the real and effective IDs are different, both are displayed,
otherwise only the real ID is displayed.
.Pp
If a
.Ar user
(login name or user ID)
is specified, the user and group IDs of that user are displayed.
In this case, the real and effective IDs are assumed to be the same.
<end snippet>
This manpage is shown on screen as
(using the command " gzcat man1/id.1.gz | nroff -man | less" ) :
ID(1) FreeBSD General Commands Manual ID(1)
NAME
id - return user identity
SYNOPSIS
id [user]
id -G [-n] [user]
id -P [user]
id -g [-nr] [user]
id -p
id -u [-nr] [user]
DESCRIPTION
The id utility displays the user and group names and numeric IDs, of the
calling process, to the standard output. If the real and effective IDs
are different, both are displayed, otherwise only the real ID is dis-
played.
There is of course the nasty possibility that the vendor has left
out man-page sources from the system. In that case there does not
(to my knowledge) exists any tool to recreate the source.
If applied pressure on the vendor does not return man-page sources,
one can always switch vendor(or manually recreate the source, whichever
is most convenient :-)
> --
> Bernie Chandler
> http://www.nationwide.net/~bernie
--
man lp > lp.txt
vi lp.txt
<esc>:%s/.^V^H//g<enter>
This will format the page so you can read it.
Mike
thanks this is quite clear and informative.