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.
_______________________________________________
freebsd-doc@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-doc
To unsubscribe, send any mail to "freebsd-doc-unsubscribe@freebsd.org"