find -path option

waldyrious/alt-syntax
Eliot Sykes 2015-12-28 18:06:08 +00:00
parent 4d336f17b8
commit 2038fc0f13
1 changed files with 4 additions and 0 deletions

View File

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