Man page: Difference between revisions

From XPUB & Lens-Based wiki
(Created page with "<source lang="bash"> man -t ls | ps2pdf - > ls.pdf </source>")
 
No edit summary
Line 2: Line 2:
man -t ls | ps2pdf - > ls.pdf
man -t ls | ps2pdf - > ls.pdf
</source>
</source>
== manpdf ==
Create a file in your path (for instance ~/bin/manpdf), with:
<source lang="bash">
#!/bin/bash
man -t $1 | ps2pdf - > $1.pdf
</source>
Be sure to chmod +x it and then:
manpdf mplayer
should make mplayer.pdf

Revision as of 16:27, 31 January 2020

man -t ls | ps2pdf - > ls.pdf

manpdf

Create a file in your path (for instance ~/bin/manpdf), with:

#!/bin/bash
man -t $1 | ps2pdf - > $1.pdf

Be sure to chmod +x it and then:

manpdf mplayer

should make mplayer.pdf