ripgrep fast search grep
List files containing TODO/FIXME/HACK in Python files
rg 'TODO|FIXME|HACK' --type py -l
more grep
all 15 commands →
ripgrep with context
rg 'panic' -C3 --glob '*.go'
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