Find a file with an unknown name
doug schmidt
douglas.j.schmidt at gmail.com
Tue May 18 12:17:56 UTC 2010
On Tue, May 18, 2010 at 5:37 AM, Eitan Adler <lists at eitanadler.com> wrote:
>> I want to find a file that was recently created.
>
> find <dir> -newerct '1 hour ago' -print
you can also find all files newer than file.txt.
find <dir> -newer file.txt -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>
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
>
More information about the freebsd-questions
mailing list