mtx-grep(1)
π mtx-grep(1) β Simple Grepper π
okay bestie, pull up a chair because we're diving into mtx-grep(1), aka the Simple Grepper β and yes, it's giving exactly what it says on the tin. no cap. π«Ά
β¨ NAME β¨
mtx-grep β Simple Grepper
like. it greps. it's simple. it's iconic. periodt. π
πΈ SYNOPSIS πΈ
mtxrun --script grep [ OPTIONS ... ] [ FILENAMES ]
so you're running it through mtxrun with --script grep, and then you can throw in some OPTIONS ... and optionally some FILENAMES. that's the whole vibe. π¦
π DESCRIPTION π
Simple Grepper
yes, that's the entire description. short king energy. not me expecting a whole essay π it's literally just a simple grepper, and honestly? respect. π
π OPTIONS π
--patternβ search for pattern (optional). lowkey the main character of the flag list, but she's optional so no pressure bestie β¨--countβ count matches only. just the numbers, ma'am. π’--allβ count all occurences in a line. yes, every single one on that line, not just the first. highkey thorough. π―--nocommentβ skip lines that start with%%or#. we do NOT have time for comments today π--noatticβ skip files that hh considers irrelevant. if hh said it's irrelevant, it's irrelevant, and that's that. π--nβ show at most n matches. n is your limit, you set it, you own it. π--firstβ only show first match. we're keeping it brief, we're being mysterious. π§--matchβ return the match (if it is one). conditional queen. if it's a match, you get it; if not, don't come crying. π--xmlβ pattern is lpath expression. fancy XML mode activated, slay. π
β AUTHOR β
want more lore about ConTeXt and all the tools that come with it? bestie, the links are RIGHT 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
go forth and read, iykyk πβ¨
and that's the whole page, bestie!! π this was version 0.10, dated 01-01-2025, and honestly it ate. go grep something iconic. bye!! ππ¦πΈ
π¦ where this page comes from
- fedora 44: texlive-context 12:svn78010-105.fc44 Β· GPL-1.0-or-later OR LPPL-1.3c
- fedora 44: texlive-context 12:svn78010-111.fc44 Β· GPL-1.0-or-later OR LPPL-1.3c
- ubuntu resolute: context 2025.09.21.20251026+dfsg-1
- ubuntu stonking: context 2025.09.21.20251026+dfsg-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms