From c97b72992417d99e10bfcc298c94f60500cc1bd9 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Mon, 28 Dec 2015 13:28:26 +0800 Subject: [PATCH 1/2] remove unnecessary example. --- pages/common/find.md | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/pages/common/find.md b/pages/common/find.md index d09e06077..75cb70ea1 100644 --- a/pages/common/find.md +++ b/pages/common/find.md @@ -6,12 +6,6 @@ `find {{root_path}} -name {{'*.py'}}` -- run a command for each file -- use {} within the command to access the filename - -`find {{root_path}} -name {{'*.py'}} -exec {{wc -l {} }}\;` -`find {{root_path}} -name {{'*.py'}} -exec {{rm {} }}\;` - - find files modified since a certain time `find {{root_path}} -name {{'*.py'}} -mtime {{-1d}}` @@ -22,4 +16,4 @@ - delete files by name, older than a certain number of days -`find {{root_path}} -name {{'*.py'}} -mtime {{-180d}} -delete` \ No newline at end of file +`find {{root_path}} -name {{'*.py'}} -mtime {{-180d}} -delete` From ed380d1a67c68990dcf668e1eec51b9437af586e Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Mon, 28 Dec 2015 17:43:58 +0800 Subject: [PATCH 2/2] Update find.md --- pages/common/find.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/find.md b/pages/common/find.md index 75cb70ea1..a3ac88adc 100644 --- a/pages/common/find.md +++ b/pages/common/find.md @@ -6,6 +6,10 @@ `find {{root_path}} -name {{'*.py'}}` +- run a command for each file, use {} within the command to access the filename + +`find {{root_path}} -name {{'*.py'}} -exec {{wc -l {} }}\;` + - find files modified since a certain time `find {{root_path}} -name {{'*.py'}} -mtime {{-1d}}`