From owner-freebsd-doc@FreeBSD.ORG Wed Sep 14 20:46:03 2005 Return-Path: X-Original-To: freebsd-doc@freebsd.org Delivered-To: freebsd-doc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CF74616A41F for ; Wed, 14 Sep 2005 20:46:03 +0000 (GMT) (envelope-from garys@opusnet.com) Received: from opusnet.com (mail.opusnet.com [209.210.200.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7C13843D48 for ; Wed, 14 Sep 2005 20:46:03 +0000 (GMT) (envelope-from garys@opusnet.com) Received: from localhost.localhost [70.98.246.232] by opusnet.com with ESMTP (SMTPD32-8.05) id AC0949E00E0; Wed, 14 Sep 2005 13:46:01 -0700 Received: from localhost.localhost (localhost.localhost [127.0.0.1]) by localhost.localhost (8.13.3/8.13.3) with ESMTP id j8EKlGv1063907; Wed, 14 Sep 2005 13:47:16 -0700 (PDT) (envelope-from garys@opusnet.com) Received: (from jojo@localhost) by localhost.localhost (8.13.3/8.13.3/Submit) id j8EKl7lU063904; Wed, 14 Sep 2005 13:47:07 -0700 (PDT) (envelope-from garys@opusnet.com) To: Josh Paetzel References: <200509130450.j8D4oTZO063544@freefall.freebsd.org> <200509130907.19907.josh@tcbug.org> <8o4q8olrjq.q8o@mail.opusnet.com> <200509141314.49542.josh@tcbug.org> From: garys@opusnet.com (Gary W. Swearingen) Date: Wed, 14 Sep 2005 13:47:07 -0700 In-Reply-To: <200509141314.49542.josh@tcbug.org> (Josh Paetzel's message of "Wed, 14 Sep 2005 13:14:48 -0500") Message-ID: User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4.17 (Jumbo Shrimp, berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-doc@freebsd.org Subject: Re: docs/86028: [patch] Add Ruby to the list of interpreters available with FreeBSD X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Sep 2005 20:46:03 -0000 Josh Paetzel 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.