diff --git a/pages/common/find.md b/pages/common/find.md index 389e42b069..d3b6de1a30 100644 --- a/pages/common/find.md +++ b/pages/common/find.md @@ -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):