Print filename and line number grep
Show file and line number for each match
grep -rn 'panic:' /var/log/app/
more grep
all 15 commands →
ripgrep fast search
rg 'TODO|FIXME|HACK' --type py -l
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