Operating System - HP-UX
1837187 Members
2417 Online
110114 Solutions
New Discussion

Re: how to format a manual page for print out?

 
Jessica Chou
Advisor

how to format a manual page for print out?

how to strip off special characters (e.g. ^H) from a man page?

Thank you.

Jessica
6 REPLIES 6
Stefan Farrelly
Honored Contributor

Re: how to format a manual page for print out?


man | inv
Im from Palmerston North, New Zealand, but somehow ended up in London...
CHRIS_ANORUO
Honored Contributor

Re: how to format a manual page for print out?

If you are using vi try "dos2ux badfilename newfilename"
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
Kofi ARTHIABAH
Honored Contributor

Re: how to format a manual page for print out?

Jessica:
you could also try

nroff -man /path/to/man/file | lp (to send to the printer)
nroff -man /path/to/man/file > /var/tmp/outputfile

cheers.
nothing wrong with me that a few lines of code cannot fix!
Devbinder Singh Marway
Valued Contributor

Re: how to format a manual page for print out?

Have you got the doc tool on your system
if you have try doc e.g. doc dd
this will create a file in your home dir as
dd.man , which you can print / view etc..

Seek and you shall find
Rick Garland
Honored Contributor

Re: how to format a manual page for print out?

man | col -b | lp -d

The 'col -b' is the key.
is whatever you want from man, i.e. man cat
Stacey Rippetoe
Advisor

Re: how to format a manual page for print out?

I use the following format:
man |lp -d -on