RTFM · Tools
ripgrep for searching
ripgrep searches trees fast by default: recursive, respects ignore files, regex-native. It complements grep rather than replacing the POSIX toolkit.

Everyday invocations
rg ERROR /var/log/app.log # simple search
rg -i todo ~/src/ # case-insensitive recursive
rg -l 'Listen 80' /etc/ # filenames only
rg -C2 NotFound service.log # 2 lines context each side
rg -uu hidden_feature # include ignored/hidden anywayResults arrive fast enough to iterate hypotheses interactively rather than batching queries cautiously.
Combining with pipelines
rg 'Cache-Control' nginx/*.conf | awk '{print $3}' | sort | uniq -cStill respecting grep
grep remains POSIX-portable and universally available in minimal images; rg excels locally and interactively. Knowing both avoids either disappointment.
| grep idiom | rg equivalent |
|---|---|
| grep -rn pattern dir/ | rg pattern dir/ |
| grep -i | rg -i |
| grep -E | rg (native) |
| grep -B2 -A4 | rg -B2 -A4 |
Prove it works: search integration habitual
reaching for rg without hesitation when answering 'where is X configured?' — reflex indicates adoption complete.
Did we miss something?
If this page left something unanswered, found an error, or there is another subject you would like documented, tell us. Saphira’s documentation grows from real problems people need to solve.
Send feedback or request a new section →
Prefer not to do it yourself?
Everything needed to do the work yourself is documented here and remains free — we charge for human time, not for withholding knowledge. Sometimes the missing resource is simply time. The same people who build Saphira can provide paid professional help with implementation, migration, troubleshooting and administration.