ripgrep
Blazing-fast recursive search tool. Find patterns in code with regex support, file filtering, and smart defaults.
38 commands
Browse by Topic
Install ripgrep (macOS)
Install ripgrep using Homebrew on macOS
Install ripgrep (Linux)
Install ripgrep using APT on Debian/Ubuntu Linux
Check ripgrep version
Verify ripgrep is installed and display version
Show lines after
Show 3 lines after each match
Basic search
Search for pattern in current directory
Show lines before
Show 3 lines before each match
Case insensitive search
Search ignoring case
Show context lines
Show 3 lines before and after match
Count matches
Count matches per file
Literal string search
Search for literal string (no regex)
Invert match
Show lines that don't match
Multiline search
Search patterns spanning multiple lines
Show only matches
Print only the matching part
Regex search
Search using regular expression
Replace in output
Replace matches in output (preview)
Match whole words
Match only whole words
List matching files
List only files that contain matches
List non-matching files
List files without matches
Follow symlinks
Follow symbolic links
Search with glob pattern
Search only in matching files
Exclude glob pattern
Exclude files matching glob
Search hidden files
Include hidden files in search
Limit directory depth
Limit search to 2 levels deep
Ignore gitignore
Don't respect .gitignore files
Search file type
Search only in JavaScript files
List file types
List all known file types
Exclude file type
Exclude JavaScript files from search
Force color output
Force colored output in pipes
Show column numbers
Show column numbers of matches
JSON output
Output results as JSON
Show line numbers
Show line numbers (default)
Limit matches per file
Show only first 5 matches per file
Hide filenames
Don't show filenames
Hide line numbers
Don't show line numbers
Show search stats
Show search statistics
Trim whitespace
Trim leading whitespace from lines
Vim-style output
Output in vim quickfix format
Show filenames always
Always show filenames
Discussion
Loading comments...