How can I search files modified in a specific day ?
2 Answers
touch --date "2010-11-01" /tmp/foo(some temp file which is not important)
touch --date "2010-11-02" /tmp/foo2(some temp file which is not important)
find /some_folder -newer /tmp/foo ! -newer /tmp/foo2
This gives you the files in some_folder which are modified newer than or the same date to "2010-11-01" and not newer than "2010-11-02".
-
You forgot to create a second file with a date a day later and invert the search on it. Dec 2, 2010 at 9:05
-
I've fixed it and added a newer date boundary.– mietteDec 2, 2010 at 11:43
man find
--find <path> -mtime <n>
wheren
is the number of days to that specific day