User's manual. Section 1.

TREX(1): translate expressions


USAGE

DESCRIPTION

Trex translates expressions in the input.

When given from and to it translates expressions starting at from and ending at to, for each pair given. Under flag -s both expressions are considered strings, and flag -r makes them behave like in the venerable tr command in UNIX. An empty (but not missing) "to" implies removal of the matched text in this case.

Flags -x and -f are similar to those in gr and are used to preserve matching within data portions as selected by previous gr calls and to perform the matching against the full input text.

There is no flag to delete, just replace with nothing.

EXAMPLES

Translate digits to letters starting at A:

Make a title

SOURCE


User's manual. Section 1.