Needs to delete particular date files in a directory

Hi Guys,

I need help on deleting particular date files in a directory. I have to delete thousands of files with respect to particular date. Could anyone help on this to delete particular date files at a time?

Thanks in Advance

what do you mean by "a particular date"? There are three time stamps associated with each file's inode.

  1. Access Time: The time when the file was last read
  2. Modify Time: The time when the file's content was last changed
  3. Change Time: The time when the file's attributes (i.e permission, etc) were last changed

Which time you are looking for? Assuming you are looking for modification time, say we need to delete files which were last modified on November 12, 2011 (exactly 47 days ago), run the below command:

find /dir -type f -mtime 47 -print -exec rm -f '{}' \;

Nothing AIX particular, moving thread.