mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:17:44 +00:00
find: Add the -maxdepth
and -mindepth
options
The `-maxdepth` option limits the number of levels `find` will descend into the file system for each given starting point. The `-mindepth` option causes commands not to be evaluated until the specified depth is reached.
This commit is contained in:
parent
05d8e2f6f8
commit
a95c2ed978
2 changed files with 69 additions and 3 deletions
|
@ -24,6 +24,12 @@ specified commands, a `-print` command is implicitly appended.
|
|||
|
||||
## Commands
|
||||
|
||||
* `-maxdepth n`: Do not descend more than `n` levels below each path given on
|
||||
the command line. Specifying `-maxdepth 0` has the effect of only evaluating
|
||||
each command line argument.
|
||||
* `-mindepth n`: Descend `n` levels below each path given on the command line
|
||||
before executing any commands. Specifying `-mindepth 1` has the effect of
|
||||
processing all files except the command line arguments.
|
||||
* `-type t`: Checks if the file is of the specified type, which must be one of
|
||||
`b` (for block device), `c` (character device), `d` (directory), `l` (symbolic
|
||||
link), `p` (FIFO), `f` (regular file), and `s` (socket).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue