...what am i doing wrong??
I need to find all files older than 30 days and delete but I can't get it to pull details for ANY + times. The file below has a time stamp which is older than 1 day, however if I try and select it using any of the -time flags it just doesn't see it. (the same thing... (1 Reply)
Hey champs,
i am using the following commands to search 1day files available under a dir by shell script.
find <dirname> -type f -mtime +1
sometimes it used to show me correct results.....but sometimes it's not ???
if the above one not working perfect i.e. not showing me the exact... (2 Replies)
Hi,
I've some files of some past days and everyday some new files are also getting added to the same.
Now how can i use mtime to get the files of the current date i.e if i want the files of 25th feb 2009 and if im finding the files on 25th 12:10 am then i should only get the files after... (4 Replies)
Hi
I've made some test with perl script to learn more about mtime...
So, my question is :
Why the mtime from findfind /usr/local/sbin -ctime -1 -mtime -1 \( -name "*.log" -o -name "*.gz" \) -print are not the same as mtime from unix/linux in ls -ltr or in stat() function in perl : stat -... (2 Replies)
Hi, I'm sure this will be covered here already somewhere, but a search didn't throw up anything.
I'm trying to work out the extra bits needed in this command for this rsync so that it only copies files less than 7 days old:
rsync me@host:/logs/* .
I'm sure it just needs the mtime -7... (2 Replies)
Hi,
I'm trying to find all files that have a .ksh and .p extension and that are 7 days old by using the below find command but it doesn't seem to as expected. It gives me random results.. Can someone point out what may be wrong?
find . -name "*.ksh" -o -name "*.p" -mtime -7 (2 Replies)
Dear all,
i am trying to find all files created one day before, for example 26 October, and i am using this command:
find . -type f -daystart -mtime 1
This command in fact lists all files created on 26 October, but the files between midnight 00:00 26 Oct and 01:00 26 Oct, does not shown... (4 Replies)