Find a file with an unknown name

Steve Bertrand steve at ipv6canada.com
Tue May 18 02:19:59 UTC 2010


On 2010.05.17 22:17, Randal L. Schwartz wrote:
>>>>>> "Steve" == Steve Bertrand <steve at 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


More information about the freebsd-questions mailing list