-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Page modification request: find #15107
Comments
The |
Not sure I follow ... Are you saying the |
If the pipe is meant to say |
No, the examples are generally meant to be modified before running. E.g. we have this example Line 28 in 9a51987
However, I think that you are right that in this particular case, the example is misleading, especially with the wording of the description. So yes, we should probably change it. |
hei,brother,How to set up tldr tar to output Chinese comments? |
Hi, in future feel free to open a new discussion or issue for your general queries since it's offtopic to the current page modification request. On your installed tldr client, you can pass the language ( |
Command description
Two
find
examples are wrong or misleading**
below is misleadingfind {{root_path}} -path '{{**/path/**/*.ext}}' -or -name '{{*pattern*}}'
find
does not support globstar - it usesfnmatch()
for glob patterns which doesn't recognize globstar syntax -find
does not set theFNM_PATHNAME
flag forfnmatch()
- this means a single star*
matches anything including slash in paths and two consecutive stars are effectively redundantThe example should be
find {{root_path}} -path '{{*/path/*/*.ext}}' -or -name '{{*pattern*}}'
|
instead of comma,
to match multiple types - also pipe is not escaped for the shell which interprets the command as a pipeline and would be an error or cause unexpected resultsfind {{root_path}} -type {{f|d}} -empty -delete -print
From https://manned.org/man/find
The example should be
find {{root_path}} -type '{{f,d}}' -empty -delete -print
Command details
No response
Documentation
https://manned.org/man/find
Platform
Linux
VCS repository link (e.g. GitHub, GitLab)
https://git.savannah.gnu.org/cgit/findutils.git
Additional information
No response
The text was updated successfully, but these errors were encountered: