1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 01:02:07 +02:00
tldr/pages/common/rga.md
2022-02-27 18:08:43 -03:00

597 B

rga

Ripgrep wrapper with rich file type searching capabilities. More information: https://github.com/phiresky/ripgrep-all.

  • Search recursively for a pattern in all files in the current directory:

rga {{regular_expression}}

  • List available adapters:

rga --rga-list-adapters

  • Change which adapters to use (e.g. ffmpeg, pandoc, poppler etc.):

rga --rga-adapters={{adapter1,adapter2}} {{regular_expression}}

  • Search for a pattern using the mime type instead of the file extension (slower):

rga --rga-accurate {{regular_expression}}

  • Display detailed help:

rga --help