Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 May 2010 19:17:21 -0700
From:      merlyn@stonehenge.com (Randal L. Schwartz)
To:        Steve Bertrand <steve@ipv6canada.com>
Cc:        "questions@freebsd.org" <questions@freebsd.org>
Subject:   Re: Find a file with an unknown name
Message-ID:  <86pr0uoswe.fsf@red.stonehenge.com>
In-Reply-To: <4BF1F84F.1000700@ipv6canada.com> (Steve Bertrand's message of "Mon, 17 May 2010 22:15:43 -0400")
References:  <4BF1F84F.1000700@ipv6canada.com>

next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> "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

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>;
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86pr0uoswe.fsf>