From owner-freebsd-questions@FreeBSD.ORG Tue May 18 02:19:59 2010 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8D1DA106564A for ; Tue, 18 May 2010 02:19:59 +0000 (UTC) (envelope-from steve@ipv6canada.com) Received: from smtp.ibctech.ca (v6.ibctech.ca [IPv6:2607:f118::b6]) by mx1.freebsd.org (Postfix) with SMTP id 13FF88FC15 for ; Tue, 18 May 2010 02:19:58 +0000 (UTC) Received: (qmail 97883 invoked by uid 89); 18 May 2010 02:22:18 -0000 Received: from unknown (HELO ?IPv6:2607:f118::5?) (steve@ibctech.ca@2607:f118::5) by 2607:f118::b6 with ESMTPA; 18 May 2010 02:22:18 -0000 Message-ID: <4BF1F94B.5070904@ipv6canada.com> Date: Mon, 17 May 2010 22:19:55 -0400 From: Steve Bertrand User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.7) Gecko/20100111 Lightning/1.0b1 Thunderbird/3.0.1 MIME-Version: 1.0 To: "Randal L. Schwartz" References: <4BF1F84F.1000700@ipv6canada.com> <86pr0uoswe.fsf@red.stonehenge.com> In-Reply-To: <86pr0uoswe.fsf@red.stonehenge.com> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: "questions@freebsd.org" Subject: Re: Find a file with an unknown name X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 May 2010 02:19:59 -0000 On 2010.05.17 22:17, Randal L. Schwartz wrote: >>>>>> "Steve" == Steve Bertrand writes: > > Steve> What command string do I use to search a directory structure for a file, > Steve> when my search pattern only matches content and not filename? > > grep -r 'pattern here' top-level-dir-here Something I do all the time, but couldn't think of it when I needed it most. Much respect for your first response on a FBSD list. Cheers ;) Steve