From ed29faeae9306cb525ec453b2c03c496bec28203 Mon Sep 17 00:00:00 2001 From: Eric Lehmann Date: Fri, 7 Oct 2022 10:00:29 -0400 Subject: [PATCH] find: add maxdepth in example (#8719) --- pages/common/find.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/common/find.md b/pages/common/find.md index 389e42b06..d3b6de1a3 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):