You can do read up on the command find. It has some options to
look for files that were last modified n*24 hours ago for example.
Coupling this with its -exec parameter will allow you to do operations
on the files it finds.