Suppress output and rely on the exit code.
Section: Reporting and scripting
Use exit status only
bash
bash
rg -q 'TODO' .Explanation
This is useful in shell scripts and CI checks.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Reporting and scripting
Print summary statistics
Show counts and timing information at the end of a search.
Limit matches per file
Stop after a fixed number of matches in each file.
Disable file headings
Print file names inline per match instead of grouped headings.