Output, Context, and Reporting/Normalize path separators

Choose a custom separator for path rendering.

Section: Reporting and scripting

Normalize path separators

bash
bash
rg --path-separator '/' 'TODO' .
Explanation

Helpful when running on Windows but generating cross-platform output.

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.
OpenIn sheetbashsame section
Use exit status only
Suppress output and rely on the exit code.
OpenIn sheetbashsame section
Emit JSON events
Get begin, match, and end events in JSON.
OpenIn sheetbashsame section
Limit matches per file
Stop after a fixed number of matches in each file.
OpenIn sheetbashsame section
Show lines before each match
Include preceding context lines.
OpenIn sheetbash1 tag match
Disable file headings
Print file names inline per match instead of grouped headings.
OpenIn sheetbash1 tag match