find: add maxdepth in example (#8719)

This commit is contained in:
Eric Lehmann
2022-10-07 10:00:29 -04:00
committed by GitHub
parent 67b67a1166
commit ed29faeae9

View File

@@ -19,9 +19,9 @@
`find {{root_path}} -name '{{*.py}}' -not -path '{{*/site-packages/*}}'` `find {{root_path}} -name '{{*.py}}' -not -path '{{*/site-packages/*}}'`
- Find files matching a given size range: - Find files matching a given size range, limiting the recursive depth to "1"::
`find {{root_path}} -size {{+500k}} -size {{-10M}}` `find {{root_path}} -maxdepth 1 -size {{+500k}} -size {{-10M}}`
- Run a command for each file (use `{}` within the command to access the filename): - Run a command for each file (use `{}` within the command to access the filename):