tshearon
asked on
How to obtain a report on stale directories
We'd like to get a report on home directories that have not had any of their contents updated in over 120 days. These directories are all on the same Windows server and NTFS volume. Does anyone know how to do this?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks billprew. This is exactly what I wanted.
Great, glad that helped.
~bp
~bp
Open in new window
Explanation: list all dir names of current directory. run a command on every dir name to list the most recent file showing date and absolute filename. change every filename to just the home folder path. sort all by date in reverse order.This will create a tab separated list with date, time, and folder name, sorted with oldest home folders at list bottom.