docs/86028: [patch] Add Ruby to the list of interpreters available with FreeBSD
Gary W. Swearingen
garys at opusnet.com
Wed Sep 14 20:46:03 UTC 2005
Josh Paetzel <josh at tcbug.org> writes:
> I didn't expect you to look that stuffs up....I'm impressed. :)
I wrote this script earlier this morning, which is something like what
I did by hand for that reply:
#!/bin/ksh -o posix
### Usage: docgrep [ --www | --both ] [grep_options] string
DOC=/usr/doc/en_US.ISO8859-1
WWW=/usr/www/en
if [ x$1 == x--www ]; then
shift
find ${WWW} \( -name "*.sgml" -or -name "*.html" \) -print0 | xargs -0 grep -H "$@"
elif [ x$1 == x--both ]; then
shift
$0 "$@"
$0 --www "$@"
else
find ${DOC} -name "*.sgml" -print0 | xargs -0 grep -H "$@"
fi
## The End.
> At any rate this can be committed then, right?
Sorry, I wasn't paying attention to the rest of the message, if any.
More information about the freebsd-doc
mailing list