Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement -daystart #372

Closed
hanbings opened this issue May 10, 2024 · 0 comments · Fixed by #413
Closed

Implement -daystart #372

hanbings opened this issue May 10, 2024 · 0 comments · Fixed by #413

Comments

@hanbings
Copy link
Collaborator

refer: https://www.gnu.org/software/findutils/manual/html_node/find_html/Age-Ranges.html

Option: -daystart
Measure times from the beginning of today rather than from 24 hours ago. 
So, to list the regular files in your home directory that were modified yesterday, do

find ~/ -daystart -type f -mtime 1

The ‘-daystart’ option is unlike most other options in that it has an effect 
on the way that other tests are performed. 
The affected tests are ‘-amin’, ‘-cmin’, ‘-mmin’, ‘-atime’, ‘-ctime’ and ‘-mtime’. 
The ‘-daystart’ option only affects the behaviour of any tests which 
appear after it on the command line.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant