Printing man pages

I used man portmaster | lpr and wasted paper. Ran man portmaster > portmaster.txt and this is an example of what I see:
 

Attachments

  • 2014-02-03-092545_3286x1200_scrot.png
    2014-02-03-092545_3286x1200_scrot.png
    300 KB · Views: 583
man(1) formats documents for the screen unless told otherwise.

For very nice PostScript output, use
man -t ps portmaster

To send that to a PostScript printer, use
man -t ps portmaster | lpr

Or convert it to a PDF:
man -t ps portmaster | ps2pdf - /tmp/portmaster.pdf && xpdf /tmp/portmaster.pdf
 
wblock@ said:
man(1) formats documents for the screen unless told otherwise.

For very nice PostScript output, use
man -t ps portmaster

To send that to a PostScript printer, use
man -t ps portmaster | lpr

Or convert it to a PDF:
man -t ps portmaster | ps2pdf - /tmp/portmaster.pdf && xpdf /tmp/portmaster.pdf
Awesome, thanks. While we're here, how do I troff(1) a script(1) output? Keeps removing my CRs.
 
Back
Top