List main folders that contain non changed folders and files since a specific date 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.
cd &lt;to directory containting the main folders&gt;
for d in */; do
    if [[ $(find "$d" -mtime -26w | fgrep -v .. | wc -l) -eq 0 ]]; then
        echo "$d"
    fi
done


should work, with the usual caveat about file/directory names containing newlines etc.

mtime compares the modification timestamp of the file with "now", -26w means "less than 26 weeks" (which is roughly 6 months).