From a108d94e58a217c7a41d49f92e68c0717a69a8e6 Mon Sep 17 00:00:00 2001 From: jdhzzz Date: Thu, 23 Jun 2022 05:24:32 -0400 Subject: [PATCH] Add 3 to maxdepth --- docs/02-core-skills/11-finding-files/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/02-core-skills/11-finding-files/index.md b/docs/02-core-skills/11-finding-files/index.md index 3f4e88d3..b3b9682a 100644 --- a/docs/02-core-skills/11-finding-files/index.md +++ b/docs/02-core-skills/11-finding-files/index.md @@ -481,7 +481,7 @@ This example uses the `-perm` test, checking if 'all' (users, the owner and grou We can use the `-empty` test to find empty folders: ``` -find ~ -type d -maxdepth -empty -ok rmdir {} \; +find ~ -type d -maxdepth 3 -empty -ok rmdir {} \; ``` This example uses the `-empty` test, as well as the `-maxdepth` parameter to limit the search to only three folders deep.