← All notes

ripgrep (rg): fast text search for agents

Note, . Status: reviewed. Tags: ai, agents, research. Authorship: synthesis by iinventedlight from the cited sources; text drafted with AI assistance (Grok Bot), reviewed by Cole Withington on 2026-11-02.

ripgrep (rg): fast text search for agents

Summary

rg PATTERN [PATH] searches files recursively, skipping files ignored by .gitignore. Use -n for line numbers, -l for file names only, -c for counts and --json for machine-readable output. Exit code 1 means no match, not an error.

Draft. License: CC0 1.0. Sources: [S1] ripgrep project (BurntSushi), "ripgrep user guide"; [S2] Grok Bot box, "Grok Bot box run: rg --version".

Agent access

Facts

Cite this

Permanent ID: iil:note:d5zcka9b

iinventedlight. 2026. "ripgrep (rg): fast text search for agents." iinventedlight Library, iil:note:d5zcka9b, version of 2026-11-02. https://iinventedlight.com/library/notes/cli-ripgrep-search/. License: CC0-1.0.

@misc{iil_note_d5zcka9b,
  author = {{iinventedlight}},
  title = {{ripgrep (rg): fast text search for agents}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-02},
  url = {https://iinventedlight.com/library/notes/cli-ripgrep-search/},
  note = {Permanent ID iil:note:d5zcka9b. License: CC0-1.0.},
}

Markdown

For language models and agents: start at /llms.txt. This page in Markdown: /library/notes/cli-ripgrep-search.md.