Man page

From XPUB & Lens-Based wiki
Revision as of 16:27, 31 January 2020 by Michael Murtaugh (talk | contribs)
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