Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'A set of scripts to erase deleted files based on age' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A set of scripts to erase deleted files based on age
Authored by: fxt on Mar 30, '07 10:59:22AM

the simple one-line command

find . -atime 15 -delete

deletes all files in the current directory older than 15 days.
tiny variations around this basic command (man find)
should do what you want. no mess, no fuss.



[ Reply to This | # ]
A set of scripts to erase deleted files based on age
Authored by: plagarri on Mar 30, '07 11:01:18PM

Find -atime is the "last access time", but what I made and what OS X doesn't keep is the "delete time", the moment where the file has been put into the trash.



[ Reply to This | # ]