Hi
When trying to find and delete files which are, say, 1 day, the find command misses a day. Please refer the following example.
xxxd$ find . -type f -ctime +1 -exec ls -ltr {} \;
total 64
-rw-rw-r-- 1 oracle xxxd 81 Apr 30 11:25 ./ful_cfg_tmp_20080429_7.dat
-rw-rw-r-- 1 oracle xxxd 81 May 1 11:25 ./ful_cfg_tmp_20080430_8.dat
-rw-rw-r-- 1 oracle xxxd 81 May 2 11:25 ./ful_cfg_tmp_20080501_9.dat
-rw-rw-r-- 1 oracle xxxd 83 May 3 11:25 ./ful_cfg_tmp_20080502_10.dat
-rw-rw-r-- 1 oracle xxxd 83 May 4 11:25 ./ful_cfg_tmp_20080503_11.dat
-rw-rw-r-- 1 oracle xxxd 83 May 5 11:25 ./ful_cfg_tmp_20080504_12.dat
xxxd$ date
Thursday May 8 08:59:03 BST 2008
Now, the problem is, we are missing the file for May 06 (Its present in the dir. 'find' is not fetching it.)
Could some one point what was the problem with the command. Previously we tried with mtime and atime, and nothing helped us either.