1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.3.
2 .TH TR "1" "January 2016" "GNU coreutils 8.25" "User Commands"
4 tr \- translate or delete characters
7 [\fI\,OPTION\/\fR]... \fI\,SET1 \/\fR[\fI\,SET2\/\fR]
9 .\" Add any additional description here
11 Translate, squeeze, and/or delete characters from standard input,
12 writing to standard output.
14 \fB\-c\fR, \fB\-C\fR, \fB\-\-complement\fR
15 use the complement of SET1
17 \fB\-d\fR, \fB\-\-delete\fR
18 delete characters in SET1, do not translate
20 \fB\-s\fR, \fB\-\-squeeze\-repeats\fR
21 replace each sequence of a repeated character
22 that is listed in the last specified SET,
23 with a single occurrence of that character
25 \fB\-t\fR, \fB\-\-truncate\-set1\fR
26 first truncate SET1 to length of SET2
29 display this help and exit
32 output version information and exit
34 SETs are specified as strings of characters. Most represent themselves.
35 Interpreted sequences are:
38 character with octal value NNN (1 to 3 octal digits)
65 all characters from CHAR1 to CHAR2 in ascending order
68 in SET2, copies of CHAR until length of SET1
71 REPEAT copies of CHAR, REPEAT octal if starting with 0
74 all letters and digits
80 all horizontal whitespace
83 all control characters
89 all printable characters, not including space
92 all lower case letters
95 all printable characters, including space
98 all punctuation characters
101 all horizontal or vertical whitespace
104 all upper case letters
107 all hexadecimal digits
110 all characters which are equivalent to CHAR
112 Translation occurs if \fB\-d\fR is not given and both SET1 and SET2 appear.
113 \fB\-t\fR may be used only when translating. SET2 is extended to length of
114 SET1 by repeating its last character as necessary. Excess characters
115 of SET2 are ignored. Only [:lower:] and [:upper:] are guaranteed to
116 expand in ascending order; used in SET2 while translating, they may
117 only be used in pairs to specify case conversion. \fB\-s\fR uses the last
118 specified SET, and occurs after translation or deletion.
120 Written by Jim Meyering.
122 GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
124 Report tr translation bugs to <http://translationproject.org/team/>
126 Copyright \(co 2016 Free Software Foundation, Inc.
127 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
129 This is free software: you are free to change and redistribute it.
130 There is NO WARRANTY, to the extent permitted by law.
132 Full documentation at: <http://www.gnu.org/software/coreutils/tr>
134 or available locally via: info \(aq(coreutils) tr invocation\(aq