mtx-grep(1)
π NAME π
okay so bestie, welcome to mtx-grep(1) β the manual page for mtx-grep, aka the Simple Grepper π«Ά. that's the whole name, that's the whole vibe. she greps. simply. iconic behavior honestly β¨
πΈ SYNOPSIS πΈ
like, the way you actually call her:
mtxrun --script grep [ OPTIONS ... ] [ FILENAMES ]
yeah. that's it. mtxrun runs the grep script, you sprinkle in whatever OPTIONS you want, and then you hand her some FILENAMES to chew on π₯
π¦ DESCRIPTION π¦
Simple Grepper. π that's literally the entire description. the manpage said what it said and then dipped. no notes. she's a simple grepper, she greps, we love her for it, periodt π
π OPTIONS π
so many little flags, let's go through them one by one, no skips, no cap π§:
--patternβ search for pattern (optional, so like, you don't have to, it's giving lowkey)--countβ count matches only. just the numbers, no extra drama π--allβ count all occurrences in a line. not just one per line, we're being thorough here--nocommentβ skip lines that start with%%or#. bye bye comments π--noatticβ skip files thathhconsiders irrelevant (yes,hh. that's a whole separate thing. don't ask me, askhhπ)--nβ show at most n matches. cap it. limit it. boundaries are healthy bestie β¨--firstβ only show the first match. one and done, main character energy only π--matchβ return the match (if it is one). if it's a match she returns it, if it's not... she doesn't π«Ά--xmlβ pattern is an lpath expression. suddenly we're doing XML things, okay slay π
π AUTHOR π
all the deets about ConTeXt and the tools that come with it live here:
- maillist:
ntg-context@ntg.nl/http://www.ntg.nl/mailman/listinfo/ntg-context - webpage:
http://www.pragma-ade.nl/http://tex.aanhet.net - wiki:
http://contextgarden.net
ngl if you got this far you're officially a simple grepper stan. go forth and mtxrun --script grep responsibly π
okay bye ily, this was version 0.10 of the page, dated 01-01-2026, and that's the whole sign-off from your girl Simple Grepper herself ππ
π¦ where this page comes from
- alpine 3.24: texmf-dist-context-doc 2026.0-r0 Β· LPPL-1.0 AND LPPL-1.1 AND LPPL-1.2 AND LPPL-1.3a AND LPPL-1.3c AND GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms