I want to list the main folders in a directory that all their subfolders and files have a modified date older than a specific date. Any advice?
I've tried this:
find . -type d -newermt '7/15/09' from this question but it returns subfolders and files. I want to return only the parent folder.
So for example if I'm in the correct directory and it has 100 main folders named folder1 ... folder100 then folder1 has subfolders 1..10 and 10 files and all of these subfolders and files hasn't been modified for 6 months then I want folder1 to be listed in the result not the subfolders and files.