Options (6)
-e, --extensionbooleanFind files with a specific extension
Example:
fd {{[-e|--extension]}} {{txt}}-H, --hiddenbooleanInclude ignored and hidden files in the search
Example:
fd {{[-H|--hidden]}} {{[-I|--no-ignore]}} "{{string|regex}}"-I, --no-ignorebooleanInclude ignored and hidden files in the search
Example:
fd {{[-H|--hidden]}} {{[-I|--no-ignore]}} "{{string|regex}}"-E, --excludebooleanExclude files that match a specific glob pattern
Example:
fd {{string}} {{[-E|--exclude]}} {{glob}}-x, --execbooleanExecute a command on each search result returned
Example:
fd "{{string|regex}}" {{[-x|--exec]}} {{command}}-d, --max-depthbooleanFind files only in the current directory
Example:
fd {{[-d|--max-depth]}} 1 "{{string|regex}}"Examples (8)
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 [-e|--extension] txtFind files in a specific directory
fd "string|regex" path/to/directoryInclude ignored and hidden files in the search
fd [-H|--hidden] [-I|--no-ignore] "string|regex"Exclude files that match a specific glob pattern
fd string [-E|--exclude] globFind files only in the current directory
fd [-d|--max-depth] 1 "string|regex"made by @shridhargupta | data from tldr-pages