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
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.
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.