[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Add examples to show depth

From: 積丹尼 Dan Jacobson
Subject: Add examples to show depth
Date: Wed, 22 Jul 2020 20:00:17 +0800

(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
$ find -maxdepth 4 -name Makefile
$ find -maxdepth 5 -name Makefile

reply via email to

[Prev in Thread] Current Thread [Next in Thread]