On Tue, May 18, 2010 at 5:37 AM, Eitan Adler <li...@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@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
>
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to