3

So, I have a directory with lots of sub-directories Something like...

main
main/folder1
main/folder2
main/folder2/otherfolder1
main/folder2/otherfolder2

etc...

Is there an easy way for me to determine which folders have files in them that have been changed since a particular date?

I'd want to know that

folder1
otherfolder2

Are the only two folders that have changed files since 7/15/09.

Anything simple will work for me...applescript, terminal command.

4
find . -type d -newermt '7/15/09'

From the find man page:

-newerXY file

True if the current file has a more recent last access time (X=a), inode creation time (X=B), change time (X=c), or modification time (X=m) than the last access time (Y=a), inode creation time (Y=B), change time (Y=c), or modification time (Y=m) of file. In addition, if Y=t, then file is instead interpreted as a direct date specification of the form understood by cvs(1). Note that -newermm is equivalent to -newer.

1

This article shows how this can be done using find in terminal. For more information on find open a terminal and use

man find

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.