From f61de87effcd30197541b830813b6f731b40912f Mon Sep 17 00:00:00 2001 From: Romain Prieto Date: Fri, 31 Jan 2014 12:33:59 +1100 Subject: [PATCH] Find: cleanup examples for running a command Need the extra space after `{}` so syntax highlighting works. --- common/find.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/common/find.md b/common/find.md index f9264b7d7..f5f1756eb 100644 --- a/common/find.md +++ b/common/find.md @@ -9,12 +9,9 @@ - run a command for each file - use {} within the command to access the filename -`find {{root_path}} -name {{'*.py'}} -exec {{command}} \;` +`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}}` - -- remove files recursively - -`find {{root_path}} -name {{'*.py'}} -exec rm {} \;`