gnu find now makes the above even easier, with it's
-newerxy option.
Code:
find /startdir ! -newermt "-12 hours" -print
Use '
m' in the '
x' position to test for
mtime, and '
t' in the '
y' position to compare it against a given time stamp. The time stamp can be a relative string in the same way as
date's
-d option.