1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.012.
2 .TH TR "1" "August 1999" "GNU textutils 2.0" FSF
4 tr \- translate or delete characters
7 [\fIOPTION\fR]...\fI SET1 \fR[\fISET2\fR]
10 .\" Add any additional description here
12 Translate, squeeze, and/or delete characters from standard input,
13 writing to standard output.
15 \fB\-c\fR, \fB\-\-complement\fR
18 \fB\-d\fR, \fB\-\-delete\fR
19 delete characters in SET1, do not translate
21 \fB\-s\fR, \fB\-\-squeeze\-repeats\fR
22 replace sequence of characters with one
24 \fB\-t\fR, \fB\-\-truncate\-set1\fR
25 first truncate SET1 to length of SET2
28 display this help and exit
31 output version information and exit
33 SETs are specified as strings of characters. Most represent themselves.
34 Interpreted sequences are:
37 character with octal value NNN (1 to 3 octal digits)
64 all characters from CHAR1 to CHAR2 in ascending order
67 same as CHAR1-CHAR2, if both SET1 and SET2 use this
70 in SET2, copies of CHAR until length of SET1
73 REPEAT copies of CHAR, REPEAT octal if starting with 0
76 all letters and digits
82 all horizontal whitespace
85 all control characters
91 all printable characters, not including space
94 all lower case letters
97 all printable characters, including space
100 all punctuation characters
103 all horizontal or vertical whitespace
106 all upper case letters
109 all hexadecimal digits
112 all characters which are equivalent to CHAR
114 Translation occurs if \fB\-d\fR is not given and both SET1 and SET2 appear.
115 \fB\-t\fR may be used only when translating. SET2 is extended to length of
116 SET1 by repeating its last character as necessary. Excess characters
117 of SET2 are ignored. Only [:lower:] and [:upper:] are guaranteed to
118 expand in ascending order; used in SET2 while translating, they may
119 only be used in pairs to specify case conversion. \fB\-s\fR uses SET1 if not
120 translating nor deleting; else squeezing uses SET2 and occurs after
121 translation or deletion.
123 Report bugs to <bug-textutils@gnu.org>.
125 The full documentation for
127 is maintained as a Texinfo manual. If the
131 programs are properly installed at your site, the command
135 should give you access to the complete manual.
137 Copyright \(co 1999 Free Software Foundation, Inc.
139 This is free software; see the source for copying conditions. There is NO
140 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.