I am trying to find the files which are created 10 mins ago and with the -daystart
parameter (i.e created/modified more than 10 mins but less than daystart) in find
command, but -mmin
is taking the priority and -daystart
is ignored. Any suggestions and comments to fix this issue is appreciated.
Below output shows -daystart
is being ignored and ideally only the test
file should be listed:
[rshetty@xxx ~]$ date
Thu Feb 23 12:06:14 CST 2017
[rshetty@xxx ~]$ find . -maxdepth 1 -type f -daystart -mmin +10 -exec ls -lrt {} \;
-rw-r--r--. 1 rshetty users 18 Jan 11 2015 ./.bash_logout
-rw-r--r--. 1 rshetty users 0 Feb 23 11:50 ./test
-rw-r--r--. 1 rshetty users 231 Jan 11 2015 ./.bashrc
-rw-r--r--. 1 rshetty users 193 Jan 11 2015 ./.bash_profile