Find a file with an unknown name

Eitan Adler lists at eitanadler.com
Tue May 18 09:37:34 UTC 2010


> I want to find a file that was recently created.

find <dir> -newerct '1 hour ago' -print

> The content within the file is known, so I can grep for that. The
> directory structure that contains the file is also known. The filename
> is not known.

grep -R "content" <dir>


More information about the freebsd-questions mailing list