1834209 Members
2399 Online
110066 Solutions
New Discussion

Print man page

 
Ragni Singh
Super Advisor

Print man page

Hi all, how do I print out a man page so I can read in text format. Any help is greatly appreciated and point will be assigned.
9 REPLIES 9
Bruno Ganino
Honored Contributor

Re: Print man page

RAC_1
Honored Contributor

Re: Print man page

man man|col -b|pr -d"printer"

Anil
There is no substitute to HARDWORK
Pete Randall
Outstanding Contributor

Re: Print man page

I've always used

man 5 regexp | col -b | expand |lp


Pete

Pete
Kiyoshi Miyake
Frequent Advisor

Re: Print man page

Hi,

See man page of man in section 5.
(# man 5 man )

And try to change /usr/share/lib/macros/an

Thx.
Francisco J. Soler
Honored Contributor

Re: Print man page

Hi if you want print out the man page you can print it in ps (postscript) format.

man -t command > file.ps

then you can print it out to a ps printer or view it with ghostview or something similar.

Frank.
Linux?. Yes, of course.
Nicolas Dumeige
Esteemed Contributor

Re: Print man page

Hello,

For what it's worth, FreeBSD site provide man pages for a large bunch of OS (including HP-UX) for various releases in various format html / ps / pdf / troff ...

http://www.freebsd.org/cgi/man.cgi

Cheers

Nicolas
All different, all Unix
Trond Haugen
Honored Contributor

Re: Print man page

Maybe not quite answering your question, but I find it usefull to be able to view man pahges as HTML. And it will print without the "usual paging" from the man pages. You'll find the cgi-script at http://hpux.cs.utah.edu/hppd/hpux/Text/man2html-3.0.1/

Regards,
Trond
Regards,
Trond Haugen
LinkedIn
Jeroen Peereboom
Honored Contributor

Re: Print man page

I always use man xxx | lp -o nroff
I use HP Laserjet printers.

Greetings,

JP.
Geoff Wild
Honored Contributor

Re: Print man page

Here's a script I got from a HP instructor - called vman. It reformats the man page on the fly and dumps it to vi. Might not help you with the printing - but gives a nice way to read man pages...

Rgds..Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.