summaryrefslogtreecommitdiff
path: root/usr/src/man/man1/tr.1
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/man/man1/tr.1')
-rw-r--r--usr/src/man/man1/tr.175
1 files changed, 21 insertions, 54 deletions
diff --git a/usr/src/man/man1/tr.1 b/usr/src/man/man1/tr.1
index 84076272a8..e9b58da3e8 100644
--- a/usr/src/man/man1/tr.1
+++ b/usr/src/man/man1/tr.1
@@ -9,7 +9,7 @@
.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.
.\" See the License for the specific language governing permissions and limitations under the License. When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with
.\" the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
-.TH tr 1 "3 Mar 2009" "SunOS 5.11" "User Commands"
+.TH TR 1 "Mar 3, 2009"
.SH NAME
tr \- translate characters
.SH SYNOPSIS
@@ -66,46 +66,38 @@ copying characters and single-character collating elements.
The following options are supported:
.sp
.ne 2
-.mk
.na
\fB\fB-c\fR\fR
.ad
.RS 6n
-.rt
Complements the set of values specified by \fIstring1\fR.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB-C\fR\fR
.ad
.RS 6n
-.rt
Complements the set of characters specified by \fIstring1\fR.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB-d\fR\fR
.ad
.RS 6n
-.rt
Deletes all occurrences of input characters that are specified by
\fIstring1\fR.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB-s\fR\fR
.ad
.RS 6n
-.rt
Replaces instances of repeated characters with a single character.
.RE
@@ -222,7 +214,6 @@ results.
The following operands are supported:
.sp
.ne 2
-.mk
.na
\fB\fIstring1\fR\fR
.ad
@@ -231,7 +222,6 @@ The following operands are supported:
\fB\fIstring2\fR\fR
.ad
.RS 11n
-.rt
Translation control strings. Each string represents a set of characters to be
converted into an array of characters used for the translation.
.RE
@@ -245,23 +235,19 @@ result in multi-character collating elements, \fBtr\fR excludes, without a
diagnostic, those multi-character elements from the resulting array.
.sp
.ne 2
-.mk
.na
\fB\fIcharacter\fR\fR
.ad
.RS 15n
-.rt
Any character not described by one of the conventions below represents itself.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB\e\fR\fIoctal\fR\fR
.ad
.RS 15n
-.rt
Octal sequences can be used to represent characters with specific coded values.
An octal sequence consists of a backslash followed by the longest sequence of
one-, two-, or three-octal-digit characters (01234567). The sequence causes the
@@ -273,12 +259,10 @@ byte.
.sp
.ne 2
-.mk
.na
\fB\fB\e\fR\fIcharacter\fR\fR
.ad
.RS 15n
-.rt
The backslash-escape sequences \fB\ea\fR, \fB\eb\fR, \fB\ef\fR, \fB\en\fR,
\fB\er\fR, \fB\et\fR, and \fB\ev\fR are supported. The results of using any
other character, other than an octal digit, following the backslash are
@@ -288,24 +272,20 @@ unspecified.
.SS "/usr/xpg4/bin/tr"
.sp
.ne 2
-.mk
.na
\fB\fIc-c\fR\fR
.ad
.RS 7n
-.rt
-
+
.RE
.SS "/usr/bin/tr"
.sp
.ne 2
-.mk
.na
\fB[\fIc-c\fR]\fR
.ad
.RS 13n
-.rt
In the POSIX locale, this construct represents the range of collating elements
between the range endpoints (as long as neither endpoint is an octal sequence
of the form \fB\e\fR\fIoctal\fR), inclusively, as defined by the collation
@@ -323,12 +303,10 @@ between two range endpoints, inclusively.
.sp
.ne 2
-.mk
.na
\fB\fB[:\fR\fIclass\fR\fB:]\fR\fR
.ad
.RS 13n
-.rt
Represents all characters belonging to the defined character class, as defined
by the current setting of the \fBLC_CTYPE\fR locale category. The following
character class names are accepted when specified in \fIstring1\fR:
@@ -369,12 +347,10 @@ in the current locale, the behavior is undefined.
.sp
.ne 2
-.mk
.na
\fB\fB[=\fR\fIequiv\fR\fB=]\fR\fR
.ad
.RS 13n
-.rt
Represents all characters or collating elements belonging to the same
equivalence class as \fIequiv\fR, as defined by the current setting of the
\fBLC_COLLATE\fR locale category. An equivalence class expression is allowed
@@ -385,12 +361,10 @@ equivalence class are placed in the array in an unspecified order.
.sp
.ne 2
-.mk
.na
\fB[\fIx*n\fR]\fR
.ad
.RS 13n
-.rt
Represents \fIn\fR repeated occurrences of the character \fIx\fR. Because this
expression is used to map multiple characters to one, it is only valid when it
occurs in \fIstring2\fR. If \fIn\fR has a leading \fB0\fR, it is interpreted
@@ -473,23 +447,19 @@ that affect the execution of \fBtr\fR: \fBLANG\fR, \fBLC_ALL\fR,
The following exit values are returned:
.sp
.ne 2
-.mk
.na
\fB\fB0\fR\fR
.ad
.RS 6n
-.rt
All input was processed successfully.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB>0\fR\fR
.ad
.RS 6n
-.rt
An error occurred.
.RE
@@ -502,13 +472,12 @@ See \fBattributes\fR(5) for descriptions of the following attributes:
.sp
.TS
-tab() box;
-cw(2.75i) |cw(2.75i)
-lw(2.75i) |lw(2.75i)
-.
-ATTRIBUTE TYPEATTRIBUTE VALUE
+box;
+c | c
+l | l .
+ATTRIBUTE TYPE ATTRIBUTE VALUE
_
-CSIEnabled
+CSI Enabled
.TE
.SS "/usr/xpg4/bin/tr"
@@ -516,17 +485,16 @@ CSIEnabled
.sp
.TS
-tab() box;
-cw(2.75i) |cw(2.75i)
-lw(2.75i) |lw(2.75i)
-.
-ATTRIBUTE TYPEATTRIBUTE VALUE
+box;
+c | c
+l | l .
+ATTRIBUTE TYPE ATTRIBUTE VALUE
_
-CSIEnabled
+CSI Enabled
_
-Interface StabilityCommitted
+Interface Stability Committed
_
-StandardSee \fBstandards\fR(5).
+Standard See \fBstandards\fR(5).
.TE
.SS "/usr/xpg6/bin/tr"
@@ -534,17 +502,16 @@ StandardSee \fBstandards\fR(5).
.sp
.TS
-tab() box;
-cw(2.75i) |cw(2.75i)
-lw(2.75i) |lw(2.75i)
-.
-ATTRIBUTE TYPEATTRIBUTE VALUE
+box;
+c | c
+l | l .
+ATTRIBUTE TYPE ATTRIBUTE VALUE
_
-CSIEnabled
+CSI Enabled
_
-Interface StabilityCommitted
+Interface Stability Committed
_
-StandardSee \fBstandards\fR(5).
+Standard See \fBstandards\fR(5).
.TE
.SH SEE ALSO