Deleted Added
full compact
tr.1 (68963) tr.1 (70197)
1.\" Copyright (c) 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" This code is derived from software contributed to Berkeley by
5.\" the Institute of Electrical and Electronics Engineers, Inc.
6.\"
7.\" Redistribution and use in source and binary forms, with or without
8.\" modification, are permitted provided that the following conditions

--- 19 unchanged lines hidden (view full) ---

28.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33.\" SUCH DAMAGE.
34.\"
35.\" @(#)tr.1 8.1 (Berkeley) 6/6/93
1.\" Copyright (c) 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" This code is derived from software contributed to Berkeley by
5.\" the Institute of Electrical and Electronics Engineers, Inc.
6.\"
7.\" Redistribution and use in source and binary forms, with or without
8.\" modification, are permitted provided that the following conditions

--- 19 unchanged lines hidden (view full) ---

28.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33.\" SUCH DAMAGE.
34.\"
35.\" @(#)tr.1 8.1 (Berkeley) 6/6/93
36.\" $FreeBSD: head/usr.bin/tr/tr.1 68963 2000-11-20 19:21:22Z ru $
36.\" $FreeBSD: head/usr.bin/tr/tr.1 70197 2000-12-19 16:00:12Z ru $
37.\"
38.Dd October 11, 1997
39.Dt TR 1
40.Os
41.Sh NAME
42.Nm tr
43.Nd translate characters
44.Sh SYNOPSIS

--- 95 unchanged lines hidden (view full) ---

140with that encoded value.
141To follow an octal sequence with a digit as a character, left zero-pad
142the octal sequence to the full 3 octal digits.
143.It \echaracter
144A backslash followed by certain special characters maps to special
145values.
146.Pp
147.Bl -column
37.\"
38.Dd October 11, 1997
39.Dt TR 1
40.Os
41.Sh NAME
42.Nm tr
43.Nd translate characters
44.Sh SYNOPSIS

--- 95 unchanged lines hidden (view full) ---

140with that encoded value.
141To follow an octal sequence with a digit as a character, left zero-pad
142the octal sequence to the full 3 octal digits.
143.It \echaracter
144A backslash followed by certain special characters maps to special
145values.
146.Pp
147.Bl -column
148.It \ea
149.It \eb
150.It \ef
151.It \en
152.It \er
153.It \et
154.It \ev
148.It "\ea <alert character>
149.It "\eb <backspace>
150.It "\ef <form-feed>
151.It "\en <newline>
152.It "\er <carriage return>
153.It "\et <tab>
154.It "\ev <vertical tab>
155.El
156.Pp
157A backslash followed by any other character maps to that character.
158.It c-c
159Represents the range of characters between the range endpoints, inclusively.
160.It [:class:]
161Represents all characters belonging to the defined character class.
162Class names are:
163.Pp
164.Bl -column
155.El
156.Pp
157A backslash followed by any other character maps to that character.
158.It c-c
159Represents the range of characters between the range endpoints, inclusively.
160.It [:class:]
161Represents all characters belonging to the defined character class.
162Class names are:
163.Pp
164.Bl -column
165.It alnum
166.It alpha
167.It cntrl
168.It digit
169.It graph
170.It lower
171.It print
172.It punct
173.It space
174.It upper
175.It xdigit
165.It "alnum <alphanumeric characters>
166.It "alpha <alphabetic characters>
167.It "cntrl <control characters>
168.It "digit <numeric characters>
169.It "graph <graphic characters>
170.It "lower <lower-case alphabetic characters>
171.It "print <printable characters>
172.It "punct <punctuation characters>
173.It "space <space characters>
174.It "upper <upper-case characters>
175.It "xdigit <hexadecimal characters>
176.El
177.Pp
176.El
177.Pp
178\." All classes may be used in
179\." .Ar string1 ,
180\." and in
181\." .Ar string2
182\." when both the
183\." .Fl d
184\." and
185\." .Fl s
186\." options are specified.
187\." Otherwise, only the classes ``upper'' and ``lower'' may be used in
188\." .Ar string2
189\." and then only when the corresponding class (``upper'' for ``lower''
190\." and vice-versa) is specified in the same relative position in
191\." .Ar string1 .
192\." .Pp
178.\" All classes may be used in
179.\" .Ar string1 ,
180.\" and in
181.\" .Ar string2
182.\" when both the
183.\" .Fl d
184.\" and
185.\" .Fl s
186.\" options are specified.
187.\" Otherwise, only the classes ``upper'' and ``lower'' may be used in
188.\" .Ar string2
189.\" and then only when the corresponding class (``upper'' for ``lower''
190.\" and vice-versa) is specified in the same relative position in
191.\" .Ar string1 .
192.\" .Pp
193With the exception of the ``upper'' and ``lower'' classes, characters
194in the classes are in unspecified order.
195In the ``upper'' and ``lower'' classes, characters are entered in
196ascending order.
197.Pp
198For specific information as to which ASCII characters are included
199in these classes, see
200.Xr ctype 3

--- 102 unchanged lines hidden ---
193With the exception of the ``upper'' and ``lower'' classes, characters
194in the classes are in unspecified order.
195In the ``upper'' and ``lower'' classes, characters are entered in
196ascending order.
197.Pp
198For specific information as to which ASCII characters are included
199in these classes, see
200.Xr ctype 3

--- 102 unchanged lines hidden ---