mtx-grep(1)

πŸ“¦
version 78010 Β· 2 versions
, in fedora 44, ubuntu resolute, ubuntu stonking

πŸ’– 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:

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