From 2038fc0f13c33a985501095163f5486e332d81bd Mon Sep 17 00:00:00 2001 From: Eliot Sykes Date: Mon, 28 Dec 2015 18:06:08 +0000 Subject: [PATCH] find -path option --- pages/common/find.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/find.md b/pages/common/find.md index a3ac88adc..7abc644a7 100644 --- a/pages/common/find.md +++ b/pages/common/find.md @@ -6,6 +6,10 @@ `find {{root_path}} -name {{'*.py'}}` +- find files matching path pattern + +`find {{root_path}} -path {{'**/lib/**/*.py'}}` + - run a command for each file, use {} within the command to access the filename `find {{root_path}} -name {{'*.py'}} -exec {{wc -l {} }}\;`