2017-10-21 03:12:59 +01:00
|
|
|
# fd
|
|
|
|
|
2019-10-08 11:19:39 +01:00
|
|
|
> An alternative to `find`.
|
2019-10-10 20:48:44 +01:00
|
|
|
> Aims to be faster and easier to use than `find`.
|
2019-06-07 11:58:11 +01:00
|
|
|
> More information: <https://github.com/sharkdp/fd>.
|
2017-10-21 03:12:59 +01:00
|
|
|
|
2020-10-05 13:11:41 +01:00
|
|
|
- Recursively find files matching the given pattern in the current directory:
|
2017-10-21 03:12:59 +01:00
|
|
|
|
2017-10-21 03:24:07 +01:00
|
|
|
`fd {{pattern}}`
|
2017-10-21 03:12:59 +01:00
|
|
|
|
2019-01-11 10:06:58 +00:00
|
|
|
- Find files that begin with "foo":
|
2017-10-21 03:12:59 +01:00
|
|
|
|
2017-10-21 03:24:07 +01:00
|
|
|
`fd {{'^foo'}}`
|
2017-10-21 03:12:59 +01:00
|
|
|
|
2017-10-21 03:24:07 +01:00
|
|
|
- Find files with a specific extension:
|
2017-10-21 03:12:59 +01:00
|
|
|
|
2019-01-11 10:06:58 +00:00
|
|
|
`fd --extension {{txt}}`
|
2017-10-21 03:12:59 +01:00
|
|
|
|
2019-01-11 10:06:58 +00:00
|
|
|
- Find files in a specific directory:
|
2017-10-21 03:12:59 +01:00
|
|
|
|
2020-10-28 17:19:43 +00:00
|
|
|
`fd {{pattern}} {{path/to/directory}}`
|
2017-10-21 03:24:07 +01:00
|
|
|
|
2019-01-11 10:06:58 +00:00
|
|
|
- Include ignored and hidden files in the search:
|
2017-10-21 03:24:07 +01:00
|
|
|
|
|
|
|
`fd --hidden --no-ignore {{pattern}}`
|