1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 09:02:08 +02:00
tldr/pages/common/fd.md
Pr0m1x 72f53d519c
fd: update page (#15038)
Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
2024-12-06 08:49:35 +01:00

659 B

fd

An alternative to find. Aims to be faster and easier to use than find. More information: https://github.com/sharkdp/fd.

  • Recursively find files matching a specific pattern in the current directory:

fd "{{string|regex}}"

  • Find files that begin with a specific string:

fd "{{^string}}"

  • Find files with a specific extension:

fd --extension {{txt}}

  • Find files in a specific directory:

fd "{{string|regex}}" {{path/to/directory}}

  • Include ignored and hidden files in the search:

fd --hidden --no-ignore "{{string|regex}}"

  • Execute a command on each search result returned:

fd "{{string|regex}}" --exec {{command}}