From ed380d1a67c68990dcf668e1eec51b9437af586e Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Mon, 28 Dec 2015 17:43:58 +0800 Subject: [PATCH] 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}}`