diff --git a/pages/common/find.md b/pages/common/find.md index d09e06077..a3ac88adc 100644 --- a/pages/common/find.md +++ b/pages/common/find.md @@ -6,11 +6,9 @@ `find {{root_path}} -name {{'*.py'}}` -- run a command for each file -- use {} within the command to access the filename +- 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 @@ -22,4 +20,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`