rg 'pattern' -n

Category: Productivity & Search

rg 'pattern' -n

Show matches with line numbers (ripgrep)

Shows matches with their line numbers. -n means 'line numbers'.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.