5

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

6
touch -t YYMMDDhhmm.SS /tmp/timestamp
find directory -type f -newer /tmp/timestamp
rm /tmp/timestamp
| improve this answer | |
2

You can use find...

touch –date "2012-11-07" /tmp/find_after
find / -newer /tmp/find_after
rm /tmp/find_after
| improve this answer | |
  • 1
    works but option should be --date – Max Oct 18 '19 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.

| improve this answer | |

Your Answer

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