mtx-grep Simple Grepper 0.10 search for pattern (optional) count matches only skip lines that start with %% or # skip files that hh considers irrelevant show at most n matches only show first match return the match (if it is one) pattern 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` patterns are lua patterns and need to be escaped accordingly