Simple Grepper 0.10
wiki: http://contextgarden.net | mail: ntg-context@ntg.nl | website: http://www.pragma-ade.nl

Command line options

flagvaluedescription
--patternsearch for pattern (optional)
--countcount matches only
--nocommentskip lines that start with %% or #
--nshow at most n matches
--firstonly show first match
--matchreturn the match (if it is one)
--xmlpattern is lpath expression

Examples

mtxrun --script grep --pattern=module *.mkiv
mtxrun --script grep --pattern="modules.-%['(.-)'%]" char-*.lua --first
mtxrun --script grep --pattern=module --count *.mkiv
mtxrun --script grep --pattern=module --first *.mkiv
mtxrun --script grep --pattern=module --nocomment *.mkiv
mtxrun --script grep --pattern=module --n=10 *.mkiv