> 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>
_______________________________________________
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