[UP]


Manual Reference Pages  - _tr (1)

NAME

_tr(1) - [FUNIX:M_strings] translate or delete characters (LICENSE:PD)

CONTENTS

Synopsis
Description
Options
Examples
Author
License

SYNOPSIS

_tr [ -o SET1 [ -n SET2 ]]|-l| -u |[ --version ]|[ --help ]

DESCRIPTION

Translate, squeeze, and/or delete characters from standard input, writing to standard output.

OPTIONS

-o SET1,-n SET2
  old set of characters and new set of characters to replace the old set.
o Each character in the input string that matches a character in the old set is replaced.
o If the new set is the empty set the matched characters are deleted.
o If the new set is shorter than the old set the last character in the new set is used to replace the remaining characters in the new set.
-u convert to uppercase
-l convert to lowercase
--help display this help and exit
--version
  output version information and exit

EXAMPLES

Sample usage

   #convert input to uppercase:
   _tr -u
   _tr -o ’abcdefghijklmnopqrstuvwxyz’ -n ’ABCDEFGHIJKLMNOPQRSTUVWXYZ’

# out of !"#$%&’()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_‘abcdefghijklmnopqrstuvwxyz{|}~ # just leave letters _ tr -o ’!"#$%&’"’"’()*+,-./0123456789:;<=>?@[\]^_‘{|}~’

AUTHOR

John S. Urban

LICENSE

Public Domain


_tr (1) March 11, 2021
Generated by manServer 1.08 from 61fbb54a-03e0-44e7-a179-0cae17a8d815 using man macros.