On Mon, May 17, 2010 at 10:15:43PM -0400, Steve Bertrand wrote:
>
> I want to find a file that was recently created.
> 
> 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.
> 
> What command string do I use to search a directory structure for a file,
> when my search pattern only matches content and not filename?
> 
> Steve

To find files that I've recently created, I use the -Btime flag of
find.

E.g:

find . -type f -Btime 1

find files created in the last 24 hours.


Regards,

-- 

 Frank

 Contact info: http://www.shute.org.uk/misc/contact.html


_______________________________________________
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