From: http://www.adaiw.com /? P = 319
1. Find parameter:-mtime N, which indicates (n + 1) * files within 24 hours. The subscript starts from 0.
Find the files modified within 24 hours and go to the directory at the upper level:
find *.apk -mtime 0 -exec cp {} ../ \; // -mtime means modified time. 0 means in first * 24Hours later.
Find the modified file today:
find *.apk -daystart -mtime 0 -exec ls -al {} \;
Find the File Modified yesterday:
find *.apk -daystart -mtime 1 -exec ls -al {} \;
2. Find-mtime + N. Adding the plus sign before the number indicates the file before (n + 1) * 24.
For example, to find the file modified before yesterday:
find * -mtime +0
Find the modified file from the previous day:
find * -mtime +1
The unit of PS.-mmin is minute.
PS-exec command {}\; you can add a command to execute the query result,
For more information, see man find.