From owner-freebsd-questions@FreeBSD.ORG Thu Nov 13 19:40:46 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 02B7016A4CE for ; Thu, 13 Nov 2003 19:40:46 -0800 (PST) Received: from mail1.acecape.com (mail1.acecape.com [66.114.74.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2174043F85 for ; Thu, 13 Nov 2003 19:40:43 -0800 (PST) (envelope-from fran@natserv.net) Received: from p65-147.acedsl.com (p65-147.acedsl.com [66.114.65.147]) by mail1.acecape.com (8.12.10/8.12.10) with ESMTP id hAE3eeXc022789; Thu, 13 Nov 2003 22:40:40 -0500 Date: Thu, 13 Nov 2003 22:42:18 -0500 (EST) From: Francisco J Reyes To: Viktor Lazlo In-Reply-To: <20031113183118.T3617@d66-183-123-52.bchsia.telus.net> Message-ID: <20031113223951.X85161@zoraida.natserv.net> References: <20031113183118.T3617@d66-183-123-52.bchsia.telus.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: FreeBSD Questions List Subject: Re: Recursion with grep? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Nov 2003 03:40:46 -0000 On Thu, 13 Nov 2003, Viktor Lazlo wrote: > If there are a large number of files this will call grep numerous > times--it would be more efficient to pass to xargs so grep is only called > a few times: > > find . -type f -print | xargs grep options string Although in my case the files are few I will keep this sample handy if I ever need to work on large number of files. I think I am going to research what would it take for someone to fix grep and pay them. How do think we would want grep to work? Do we want something like: grep -r *.c If I get someone to change grep anyone care to comment on whether it would be difficult to get this imported into the tree?