---
name: "mtxrun-grep"
section: "1"
platform: "linux"
package: "texlive-doc"
version: "2026.1-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/mtxrun-grep"
---

# mtxrun-grep(1)

Simple Grepper

## NAME

 mtx-grep - Simple Grepper

## SYNOPSIS

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

## DESCRIPTION

**Simple Grepper**

## OPTIONS

- **--pattern**

  search for pattern (optional)

- **--count**

  count matches only

- **--all**

  count all occurences in a line

- **--nocomment**

  skip lines that start with %% or #

- **--noattic**

  skip files that hh considers irrelevant

- **--n**

  show at most n matches

- **--first**

  only show first match

- **--match**

  return the match (if it is one)

- **--xml**

  pattern is lpath expression

## AUTHOR

More information about ConTeXt and the tools that come with it can be found at:

**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
