From owner-freebsd-questions@FreeBSD.ORG Mon Nov 17 09:27:42 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 CA2EF16A4CF for ; Mon, 17 Nov 2003 09:27:42 -0800 (PST) Received: from mail1.acecape.com (mail1.acecape.com [66.114.74.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7059543FB1 for ; Mon, 17 Nov 2003 09:27:40 -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 hAHHRdnU031799; Mon, 17 Nov 2003 12:27:39 -0500 Date: Mon, 17 Nov 2003 12:29:44 -0500 (EST) From: Francisco Reyes To: parv In-Reply-To: <20031114040351.GA40112@moo.holy.cow> Message-ID: <20031117122644.S55057@zoraida.natserv.net> References: <20031113183118.T3617@d66-183-123-52.bchsia.telus.net> <20031114040351.GA40112@moo.holy.cow> 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: Mon, 17 Nov 2003 17:27:42 -0000 On Thu, 13 Nov 2003, parv wrote: > in message <20031113223951.X85161@zoraida.natserv.net>, > wrote Francisco J Reyes thusly... > > > > Do we want something like: > > grep -r *.c > > I do not know about anybody else, i myself like to keep the current > behaviour for -r option. Several people have expressed a simmilar sentiment, but I don't quite understand why. As it stands grep can't recurse and search only certain files. I can only imagine how many time this probably has shown up on this and many other lists. After all if you can do grep *.c The logical thing is to expect the following to work grep -r *.c