[Novalug] Printing man pages question

John Kennedy skebi69@gmail.com
Sun Nov 21 20:57:19 EST 2010


On 11/21/2010 08:07 PM, James Ewing Cottrell 3rd wrote:
>    On 11/20/2010 2:14 AM, Jon LaBadie wrote:
>> On Fri, Nov 19, 2010 at 11:21:53PM -0500, cmhowe@patriot.net wrote:
>>> List,
>>>
>>> I want to have a hard copy of a man page. If, for example, I do
>>>
>>>     man gedit>gedit-manual
>>>
>>> then
>>>
>>>     lpr gedit-manual
>>>
>>> I get something so unattractive that it is useless. I could edit it but I
>>> have a hunch that there is a program to make it attractive. Does anyone
>>> know of a program that does that?
>> According to the man manpage, the -t option should do what you want.
>>
>>      man -t gedit>   gedit.ps
>>      lp gedit.ps
>>
>>      man -t gedit | lp
>>
>> Jon
> You are probably right. But I always use "a2ps" to send things to the
> printer:
>
> man whatever | a2ps -m
>
> The -m option processes the data like a manpage. You can also use -2 to
> get two column output in landscape mode
> and -s2 to get double sided printing.
>
> JIM
> _______________________________________________
> Novalug mailing list
> Novalug@calypso.tux.org
> http://calypso.tux.org/mailman/listinfo/novalug
>

How about this:

man <command> | col -b | lp

That works for me...You can also redirect it to a text file:

man <command> | col -b >> <command>-man.txt

That way you can add it to your e-reader or other device to take with you.

John

-- 
John Kennedy



More information about the Novalug mailing list