2

I need to recursively list all files in a directory that were modified after a certain date. Is this possible?

migrated from stackoverflow.com Nov 7 '12 at 8:29

This question came from our site for professional and enthusiast programmers.

3
touch -t YYMMDDhhmm.SS /tmp/timestamp
find directory -type f -newer /tmp/timestamp
rm /tmp/timestamp
2

You can use find...

touch –date "2012-11-07" /tmp/find_after
find / -newer /tmp/find_after
rm /tmp/find_after
  • works but option should be --date – Max Oct 18 at 16:30
1

Probably you are looking for this:

find . -type f -mtime 1

this above command will show you files modified 1 day ago from the current directory recursively.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy