ripgrep replace preview grep
Preview how a replacement would look without writing
rg 'old_value' --replace 'new_value' --passthru config.yaml
more grep
all 15 commands →
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
Recursive case-insensitive search
grep -ri 'error' /var/log/
Show context lines
grep -B3 -A5 'FATAL' app.log