diff --git a/pages/common/find.md b/pages/common/find.md index 3641bf14d6d130..55d46f39c5a1a7 100644 --- a/pages/common/find.md +++ b/pages/common/find.md @@ -9,7 +9,7 @@ - Find files matching multiple path/name patterns: -`find {{root_path}} -path '{{**/path/**/*.ext}}' -or -name '{{*pattern*}}'` +`find {{root_path}} -path '{{*/path/*/*.ext}}' -or -name '{{*pattern*}}'` - Find directories matching a given name, in case-insensitive mode: @@ -31,6 +31,6 @@ `find {{root_path}} -daystart -mtime {{-1}} -exec {{tar -cvf archive.tar}} {} \+` -- Find empty files (0 byte) or directories and delete them verbosely: +- Search for either empty files or directories and delete them verbosely: `find {{root_path}} -type {{f|d}} -empty -delete -print`