gitrgrep(1)

πŸ’– gitrgrep β€” the manual, bestie edition πŸ’–

okay so this is gitrgrep(1), a page from the General Commands Manual, and it's literally one of the GNU Interactive Tools. sit down, grab a boba, we're doing this πŸ§‹βœ¨


🌸 NAME 🌸

gitrgrep β€” GNU Interactive Tools β€” recursive grep. that's the whole vibe, she greps, but recursively, and she's iconic for it πŸ‘‘


✨ SYNTAX ✨

gitrgrep [grep-like options]

yeah that's it. that's the whole synopsis. she's lowkey minimal πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

so gitrgrep is a very small script β€” like, tiny tiny, no cap β€” and what it does is call grep recursively. that's it. that's the job. she's a lil wrapper and she ate πŸ’…

she accepts grep-like options/parameters, so if you already know grep you already know her. the only difference? you gotta quote your file specifications. yes, for real, the quotes are not optional, the quotes are the whole personality 🫢

so like:

gitrgrep main '*.c'

or if you're feeling extra and want both file types:

gitrgrep errno '*.c *.h'

see how the patterns are chillin' inside the quotes? that's the move. do that. ✨


πŸ’€ BUGS πŸ’€

okay so there's a little catch, bestie, and we gotta talk about it πŸ™ˆ

/bin/sh should support functions in order for gitrgrep to run. that's the requirement, and honestly /bin/sh is out here being unpredictable, so the safe play is: use bash to be sure. just use bash. trust. πŸ”₯

and if something's actually broken and you gotta tell somebody? send those bug reports to gnuit-dev@gnu.org πŸ“§

fr fr, use bash unless you enjoy chaos πŸ’œ

🌈 SEE ALSO 🌈

the whole girlies of the GNU Interactive Tools squad, all in one place:

go say hi, they're all in the group chat πŸ‘‘β­


πŸ’œ AUTHORS πŸ’œ

the legends who made this happen, give them their flowers 🌸:

  • Tudor Hulubei <tudor@cs.unh.edu>
  • Andrei Pitis <pink@pub.ro>
  • Ian Beckwith <ianb@erislabs.net> β€” (Current maintainer)

okay bestie that's the whole page, and this absolute slay of a manpage is gitrgrep(1) from the General Commands Manual β€” now go quote your file specs and grep recursively, you got this πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from