ripgrep with context grep
3 lines of context around matches in Go files
rg 'panic' -C3 --glob '*.go'
more grep
all 15 commands →
ripgrep search in hidden files
rg 'secret_key' --hidden --no-ignore
ripgrep replace preview
rg 'old_value' --replace 'new_value' --passthru config.yaml
ripgrep stats
rg 'error' /var/log/ --stats 2>&1 | tail -5
Search binary files
grep -a 'password' /proc/<pid>/mem 2>/dev/null | strings | head -20
Extended regex alternation
grep -E '(ERROR|WARN|CRIT)' app.log | tail -50