mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-09-24 18:30:25 +03:00
find: reoder example
This commit is contained in:
parent
d3d91a5804
commit
b16fa9f0fa
@ -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'`
|
||||
|
Loading…
Reference in New Issue
Block a user