Finding files newer than a certain date / time

October 11, 2011

Today I needed to find all files in a directory tree that had been updated since a specific point in time.

After a few trials this solution worked perfectly.

Create a file “touched” at the date you want to start from.

Then do a “find” that uses this file’s timestamp as a reference.

As simple as:

touch -t 201109130845 start-file.tmp
find messages/ -newer start-file.tmp


Follow

Get every new post delivered to your Inbox.