try rm -i `find /thedirectory/goes/here -type f -atime 5`. Note that the ` is the apostrophe on the ~ key of a standard US keyboard.
man find for the other options like -ctime (last status changed n*24 hours ago) or -mtime (last modified n*24 hours ago) instead of -atime (last accessed n*24 hours ago)...
Last edited by pljvaldez; 01-25-2006 at 07:17 PM.
|