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 {} \;`