Date: Wed, 14 Sep 2005 13:47:07 -0700 From: garys@opusnet.com (Gary W. Swearingen) To: Josh Paetzel <josh@tcbug.org> Cc: freebsd-doc@freebsd.org Subject: Re: docs/86028: [patch] Add Ruby to the list of interpreters available with FreeBSD Message-ID: <rbpsrbgywk.srb@mail.opusnet.com> In-Reply-To: <200509141314.49542.josh@tcbug.org> (Josh Paetzel's message of "Wed, 14 Sep 2005 13:14:48 -0500") References: <200509130450.j8D4oTZO063544@freefall.freebsd.org> <200509130907.19907.josh@tcbug.org> <8o4q8olrjq.q8o@mail.opusnet.com> <200509141314.49542.josh@tcbug.org>
index | next in thread | previous in thread | raw e-mail
Josh Paetzel <josh@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.
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?rbpsrbgywk.srb>
