find: reoder example

This commit is contained in:
Agniva De Sarker 2018-08-26 10:19:15 +05:30
parent d3d91a5804
commit b16fa9f0fa

View File

@ -1,11 +1,15 @@
# find
> Find files under the given directory tree, recursively.
> Find files or directories under the given directory tree, recursively.
- Find files by extension:
`find {{root_path}} -name '{{*.ext}}'`
- Find directories matching a given name:
`find {{root_path}} -type d -name {{*lib*}}`
- Find files matching path pattern:
`find {{root_path}} -path '{{**/lib/**/*.ext}}'`
@ -29,7 +33,3 @@
- Find files matching a given pattern, while excluding specific paths:
`find {{root_path}} -name '{{*.py}}' -not -path '{{*/site-packages/*}}'`
- Find directories matching name:
`find {{root_path}} -type d -name 'httpdocs'`