Find is the command for you, but depends on what time you want to check. Here are some examples cut from the man page:
-atime n
File was last accessed n*24 hours ago.
-mtime n
File’s data was last modified n*24 hours ago.
-ctime n
File’s status was last changed n*24 hours ago.
So, using one of the time options you would do:
Code:
find /data/path -mtime 30 -exec rm {} \;
But you may want to experiment a bit with ls to:
[CODE]find /data/path -mtime 30 -exec ls -l {} \;[\CODE]
Hope it helps.
Pete