rg
Ripgrep is a fast, recursive line-oriented CLI search tool (https://github.com/BurntSushi/ripgrep)
To search for a regular expression pattern recursively in the current directory
To search for a pattern including hidden files (but respecting .gitignore)
To search for a pattern in ignored files (but skipping hidden files)
To search for a pattern in both ignored and hidden files
To search all files including binary files
To search for a pattern including hidden files and files listed in .gitignore
rg --no-ignore --hidden <pattern>
To search for a pattern only in specific directories
To search for a pattern in files matching a glob pattern (e.g. *.md)
rg <pattern> --glob <glob_pattern>
To search for filenames that match a pattern
rg --files | rg <pattern>
To list only the names of files that contain matches
rg --files-with-matches <pattern>
To show lines that do not match the given pattern
rg --invert-match <pattern>
To search for a literal string pattern
rg --fixed-strings -- <literal_string>