Date: Mon, 17 May 2010 22:19:55 -0400 From: Steve Bertrand <steve@ipv6canada.com> To: "Randal L. Schwartz" <merlyn@stonehenge.com> Cc: "questions@freebsd.org" <questions@freebsd.org> Subject: Re: Find a file with an unknown name Message-ID: <4BF1F94B.5070904@ipv6canada.com> In-Reply-To: <86pr0uoswe.fsf@red.stonehenge.com> References: <4BF1F84F.1000700@ipv6canada.com> <86pr0uoswe.fsf@red.stonehenge.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2010.05.17 22:17, Randal L. Schwartz wrote: >>>>>> "Steve" == Steve Bertrand <steve@ipv6canada.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4BF1F94B.5070904>