I am trying to list all the files created / modified today in a directory.
With reference to this thread,
I have used the below command to list all the files modified today.
find . -daystart -type f -mtime 0
but i am getting this exception -
find: bad option -daystart
find: path-list predicate-list
I am using bourne shell in SUNOS.
Please let me know how to solve this issue.
Thanks for you response..
Is there any possibility to list the files which are created / modified today?
-mtime options list the files modified in the last 24 hrs. but I need to find files only that are modified today not in the last 24hrs.
As i am suppose to list the current date files, i meant to add it at midnight so that i will get all the files modified today.
Moreover i cant run the script again, if so this touch will update the time stamp to now, and i will be getting the list of files which are modified from this time only and not from 00 hours...