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

find: add -daystart argument in example #6499

Merged
merged 1 commit into from
Sep 10, 2021
Merged

find: add -daystart argument in example #6499

merged 1 commit into from
Sep 10, 2021

Conversation

dwdh
Copy link
Contributor

@dwdh dwdh commented Sep 9, 2021

  • The page is in the correct platform directory (common/, linux/, etc.)
  • The page has 8 or fewer examples.
  • The PR title conforms to the recommended templates.
  • The page follows the content guidelines.
  • The page description includes a link to documentation or a homepage (if applicable).

Option is wrong. want to display files older than 7 days, should use the -daystart -mtime -7 or -ctime -6.
for example:

$ find . -daystart -mtime -7
.
./test_2021-09-04.log
./test_2021-09-07.log
./test_2021-09-05.log
./test_2021-09-08.log
./test_2021-09-03.log
./test_2021-09-06.log
./test_2021-09-09.log

$ find . -ctime -6
.
./test_2021-09-04.log
./test_2021-09-07.log
./test_2021-09-05.log
./test_2021-09-08.log
./test_2021-09-03.log
./test_2021-09-06.log
./test_2021-09-09.log

Add -daystart option
@CLAassistant
Copy link

CLAassistant commented Sep 9, 2021

CLA assistant check
All committers have signed the CLA.

@mfrw mfrw added the page edit Changes to an existing page(s). label Sep 9, 2021
Copy link
Member

@mfrw mfrw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM .. thank you for the contribution.
TIL -> -daystart

@navarroaxel navarroaxel changed the title find:add option find: add -daystart argument in example Sep 10, 2021
Copy link
Member

@sbrl sbrl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch - thanks, @dwdh!

@sbrl sbrl merged commit 0e0dc20 into tldr-pages:main Sep 10, 2021
@dwdh dwdh deleted the dwdh-patch-1 branch September 13, 2021 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
page edit Changes to an existing page(s).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants