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


Click here to return to the 'A script to open man pages in BBEdit' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A script to open man pages in BBEdit
Authored by: miedreich on Jan 04, '06 09:12:49AM
I use a similar version (with TextWrangler installed, which provides the edit command)

#!/bin/bash
mpg=$*;
if [ ! $1 ];then
        echo "Enter man page to read: ";
        read mpg;
fi
man $mpg | col -b | /usr/bin/edit
(adapted from the postscript version from a previous post)
Important change is the use of $* in the second line, so you can access sections (like man 5 crontab)

[ Reply to This | # ]