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


bman | 2 comments | Create New Account
Click here to return to the 'bman' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
bman
Authored by: Titanium Man on Mar 11, '03 11:57:58PM

pmccann from the sister site came up with something called bman. It'll open manpages in a browser window (complete with links in tact) and is fast. He called it "bman", and it goes a little something like this

#!/bin/sh
# Writes an html formatted manpage to a given file, then
# opens the default browser to display the thing (assuming
# that you've associated .html files with your browser of choice
# Otherwise use eg "open -a mozilla $tfile" on the last line
tfile=/Users/pmccann/junk/somefile.html
man $1 | rman -f HTML > $tfile
open $tfile


The original thread that I got that from is at

http://forums.macosxhints.com/showthread.php?s=&threadid=3867&highlight=bman

This is my small change to pcmccann's great idea:

#!/bin/sh
man $1 | rman -f HTML > /tmp/$1.html
open /tmp/$1.html



[ Reply to This | # ]