ripgrep stats grep
Show total matches, files searched, elapsed time
rg 'error' /var/log/ --stats 2>&1 | tail -5
more grep
all 15 commands →
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
Count matches
grep -c 'POST /api' /var/log/nginx/access.log