1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-09-10 15:53:34 +02:00

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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,9 +19,9 @@
`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):