---
name: "tmxgrep"
section: "1p"
platform: "linux"
package: "libxml-tmx-perl"
version: "0.39-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/tmxgrep"
---

# tmxgrep(1p)

grep translation units in a TMX file

## NAME

tmxgrep - grep translation units in a TMX file

## VERSION

version 0.39

## SYNOPSIS

```
 tmxgrep patt file.tmx
 options:
   -max=300    -- extract up to 300 TU (def=500)
   -max=0      -- all matches
   -all        -- all matches
   -a          -- annotate matches with '=(...)='
   -a=xx       -- annotate matches with '<xx>...</xx>'
   -o=out.tmx  -- define output file (defaut= STDOUT)
   -n          -- print original TU number (eg: <tu n="35">)
   -i          -- ignore case
   -w          -- whole words
   -pdf        -- output is transformed in a PDF file and show
   -html       -- output is transformed in a HTML file and show
   -html=chromium  -- idem and show it with chromium (def:firefox)
```

Where patt can be:

```
  RegExp
  l1:RegExp
  l1:RegExp;l2:RegExp
```

## DESCRIPTION

Creates a TMX file with the translation units that macth the provided regular expression.

## AUTHORS

- •

  Alberto Simões \<ambs@cpan.org\>

- •

  José João Almeida \<jj@di.uminho.pt\>

## COPYRIGHT AND LICENSE

This software is copyright (c) 2010-2017 by Projeto Natura \<natura@di.uminho.pt\>.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
