coreutils: tr invocation
1
1 9.1 ‘tr’: Translate, squeeze, and/or delete characters
1 ======================================================
1
1 Synopsis:
1
1 tr [OPTION]... SET1 [SET2]
1
1 ‘tr’ copies standard input to standard output, performing one of the
1 following operations:
1
1 • translate, and optionally squeeze repeated characters in the
1 result,
1 • squeeze repeated characters,
1 • delete characters,
1 • delete characters, then squeeze repeated characters from the
1 result.
1
1 The SET1 and (if given) SET2 arguments define ordered sets of
1 characters, referred to below as SET1 and SET2. These sets are the
1 characters of the input that ‘tr’ operates on. The ‘--complement’
1 (‘-c’, ‘-C’) option replaces SET1 with its complement (all of the
1 characters that are not in SET1).
1
1 Currently ‘tr’ fully supports only single-byte characters.
1 Eventually it will support multibyte characters; when it does, the ‘-C’
1 option will cause it to complement the set of characters, whereas ‘-c’
1 will cause it to complement the set of values. This distinction will
1 matter only when some values are not characters, and this is possible
1 only in locales using multibyte encodings when the input contains
1 encoding errors.
1
11 The program accepts the ‘--help’ and ‘--version’ options. ⇒
Common options. Options must precede operands.
1
1 An exit status of zero indicates success, and a nonzero value
1 indicates failure.
1
Menu