terminal.cab

All commands

tr

Topic: Text

Program: tr

Replaces or deletes characters.

Package: text-tools

Usage

tr [OPTION]... SET1 [SET2]

Description

Read the keyboard or pipe and replace each byte of SET1 with the byte at the same place in SET2, or remove or squeeze them. SETs know ranges like a-z, classes like [:lower:] and \n for a newline.

Options in the simulator

2 more options of the real program, not in the simulator yet
  • -t, --truncate-set1 not in the simulator yet

    On a real system it cuts SET1 down to the length of SET2 instead of filling up SET2.

  • --version not in the simulator yet

    On a real system it prints the version of the program.

Where you learn it

No lesson yet.

All commands