I'm currently writing a clean up script and for that i need a list of folder without any changes to subfiles or subdiretories. Right now i have this as a base. (Would like it to be untouched for the last 14 days)
find ./* -type f -mtime -14
Which will generate a list of any untouched files and directories. The problem is that this one will generate a list where some directories might show up any way because there only been changes to a couple of files within some of the subdirectories.
Does anyone have any idea how to generate a list of completely untouched directories?
cheers!