Skip to content

fd find Snippets

Terminal window
# Find a pattern
find -iname '*pattern*'
# Find a pattern with fd
fd pattern
fd 'put_regex_here'
# Find pattern from fd output with rg for better highlighting
fd | rg -i pattern
# List files recursively in current and sub directories
fd
# Find with fd files with these 3 words in any order
fd | rg -e --pcre2 '^(?=.*apple)(?=.*banana)(?=.*cherry).*'