You need daystart
if you want to catch all files up to yesterday 23:59 o'clock:
Measure times (for -amin, -atime, -cmin, -ctime, -mmin,
and -mtime) from the beginning of today rather than from
24 hours ago. This option only affects tests which appear
later on the command line.
Example:
find /temp/source/* -daystart -mtime +0
Or of you want all files only of today
find /temp/source/* -daystart -mtime 0
Or all files only of yesterday
find /temp/source/* -daystart -mtime 1
You can even define a specific range of days like all files of yesterday and the day before yesterday:
find /temp/source/* -daystart -mtime +0 -mtime -3
PS You should consider -mindepth 1
instead of globbing (*
) the subdirectories to find
.