Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Open formatted man pages in Preview from the command line' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Open formatted man pages in Preview from the command line
Authored by: tom larkin on May 15, '11 09:00:05PM
I submitted this when Rob was still running things, he declined to post it since there were similar hints. Here it is, my function called "woman" to export man pages to pdf

function woman {
  tmpfile="/tmp/man ${*}.pdf"
  if [ \! -f "${tmpfile}" ]
  then
      man -t "${*}" | pstopdf -i -o "${tmpfile}"
  fi
  open "${tmpfile}"
}


[ Reply to This | # ]