From 462673502121d901e11e0fcb28cf14fb9942cd6d Mon Sep 17 00:00:00 2001 From: Xiang Wang Date: Fri, 10 Mar 2017 08:48:29 -0600 Subject: [PATCH] find: ignore given directory (#1289) * find path while excluding certain directory * delete the `find {{root_path}} -empty` command to meet the demand of 8 commands at most * tokenize the demo parameter --- pages/common/find.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/common/find.md b/pages/common/find.md index a40b9b9df..1e9ff494d 100644 --- a/pages/common/find.md +++ b/pages/common/find.md @@ -26,10 +26,10 @@ `find {{root_path}} -name '{{*.ext}}' -mtime {{-180}} -delete` -- Find empty files or directories: - -`find {{root_path}} -empty` - - Find files matching more than one search criteria: `find {{root_path}} -name '{{*.py}}' -or -name '{{*.r}}'` + +- Find files matching path pattern while excluding some certain path: + +`find {{root_path}} -name '{{*.py}}' -not -path '{{*/site-packages/*}}'`