Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question

2 Answers 2

up vote 3 down vote accepted
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.

share|improve this answer

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

man find
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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