mtx-grep(1)

✨ NAME ✨

bestie, this is mtx-grep β€” the Simple Grepper πŸ’… she's the little script that comes with mtxrun and she exists to find stuff for you. that's it. that's the job. no cap.


πŸŽ€ SYNOPSIS πŸŽ€

mtxrun --script grep [ OPTIONS ...  ] [ FILENAMES ]

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so. Simple Grepper. genuinely as simple as the name is giving β€” you point her at some files, you tell her what to look for, she greps. lowkey iconic for how unbothered she is about it. 🌸


πŸ‘‘ OPTIONS πŸ‘‘

  • --pattern β€” search for pattern (optional) πŸ” like, this one is literally optional, she said "you can tell me what to look for, or not, I'm flexible"
  • --count β€” count matches only πŸ”’ not the matches themselves, just the number. she's giving accountant energy for exactly this flag.
  • --nocomment β€” skip lines that start with %% or # πŸ™ˆ she's skipping the commentary, we're only here for the main character lines.
  • --n β€” show at most n matches βœ‚οΈ where n is a number, bestie. cap the output, we don't need the whole saga.
  • --first β€” only show first match πŸ₯‡ first one and then she's done, no further questions
  • --match β€” return the match (if it is one) βœ… conditional queen behaviour β€” she returns it if it is one
  • --xml β€” pattern is lpath expression 🌈 not a plain old pattern, an lpath expression, okay? different beast entirely.

πŸ’– AUTHOR πŸ’–

ngl if you want the whole lore on ConTeXt and all the tools that roll with it, it lives 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 πŸ“–


and that's the whole page, babe 🫢 no secrets, no missing flags, fr fr.

version 0.10 🌟 01-01-2023 🌟 that's a wrap on mtx-grep(1), from the Simple Grepper section of the manual. stay greppin' πŸ’…βœ¨

πŸ“¦ where this page comes from