Output, Context, and Reporting/Show column numbers

Include the column offset for each match.

Section: Formatting and location metadata

Show column numbers

bash
bash
rg --column 'SELECT' migrations/
Explanation

Editor integrations often use filename, line, and column to jump to a result.

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 Formatting and location metadata
Disable file headings
Print file names inline per match instead of grouped headings.
OpenIn sheetbashsame section
Always show file names
Force file names even for a single file.
OpenIn sheetbashsame section
Print only the matched text
Return the matched substring instead of the full line.
OpenIn sheetbashsame section
Preview replacements in output
Show how a replacement would look without editing files.
OpenIn sheetbashsame section
Show lines before each match
Include preceding context lines.
OpenIn sheetbash1 tag match
Print summary statistics
Show counts and timing information at the end of a search.
OpenIn sheetbash1 tag match