[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Add examples to show depth
From: |
Bernhard Voelker |
Subject: |
Re: Add examples to show depth |
Date: |
Fri, 14 Aug 2020 00:31:31 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 |
On 2020-07-22 14:00, 積丹尼 Dan Jacobson wrote:
> (info "(find) Directories") says
>
> -- Option: -maxdepth levels
> Descend at most LEVELS (a non-negative integer) levels of
> directories below the command line arguments. '-maxdepth 0' means
> only apply the tests and actions to the command line arguments.
>
> -- Option: -mindepth levels
> Do not apply any tests or actions at levels less than LEVELS (a
> non-negative integer). '-mindepth 1' means process all files
> except the command line arguments.
>
> OK that is great, but not clear without examples.
>
> Something like
> $ find -name Makefile
> ./comm/radio/radioscanningtw/maps/Makefile
> ./comm/air/m750/programs/a/Makefile
> ./comm/air/routes/programs/Makefile
> $ find -maxdepth 4 -name Makefile
> $ find -maxdepth 5 -name Makefile
> ./comm/radio/radioscanningtw/maps/Makefile
> ./comm/air/routes/programs/Makefile
> etc.
Thanks for the suggestion. Fixed with the attached:
[PATCH] doc: add examples for -maxdepth, -mindepth
Have a nice day,
Berny
0001-doc-add-examples-for-maxdepth-mindepth.patch
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Add examples to show depth,
Bernhard Voelker <=