summaryrefslogtreecommitdiffstats
path: root/usr.bin/tr
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2006-10-13 16:13:45 +0000
committerru <ru@FreeBSD.org>2006-10-13 16:13:45 +0000
commitaeb789985adc8cffbbf4d4445108095599d5705a (patch)
tree1f2707fa453c6b1ea400265100502ddd242b3eac /usr.bin/tr
parent89970b0707158973b395be28fcf54cce70b6a149 (diff)
downloadFreeBSD-src-aeb789985adc8cffbbf4d4445108095599d5705a.zip
FreeBSD-src-aeb789985adc8cffbbf4d4445108095599d5705a.tar.gz
- Document all character classes our tr(1) supports. [1]
- Mention that some of them are POSIX extensions. [2] PR: docs/85062 [1] Submitted by: Toby Peterson [1] Obtained from: wctype(3) [2] MFC after: 3 days
Diffstat (limited to 'usr.bin/tr')
-rw-r--r--usr.bin/tr/tr.116
1 files changed, 14 insertions, 2 deletions
diff --git a/usr.bin/tr/tr.1 b/usr.bin/tr/tr.1
index 9c36c91..e30c877 100644
--- a/usr.bin/tr/tr.1
+++ b/usr.bin/tr/tr.1
@@ -35,7 +35,7 @@
.\" @(#)tr.1 8.1 (Berkeley) 6/6/93
.\" $FreeBSD$
.\"
-.Dd July 23, 2004
+.Dd October 13, 2006
.Dt TR 1
.Os
.Sh NAME
@@ -182,16 +182,21 @@ previous implementations.
Represents all characters belonging to the defined character class.
Class names are:
.Pp
-.Bl -column "xdigit"
+.Bl -column "phonogram"
.It "alnum <alphanumeric characters>
.It "alpha <alphabetic characters>
+.It "blank <whitespace characters>
.It "cntrl <control characters>
.It "digit <numeric characters>
.It "graph <graphic characters>
+.It "ideogram <ideographic characters>
.It "lower <lower-case alphabetic characters>
+.It "phonogram <phonographic characters>
.It "print <printable characters>
.It "punct <punctuation characters>
+.It "rune <valid characters>
.It "space <space characters>
+.It "special <special characters>
.It "upper <upper-case characters>
.It "xdigit <hexadecimal characters>
.El
@@ -396,6 +401,13 @@ The
.Nm
utility conforms to
.St -p1003.1-2001 .
+The
+.Dq ideogram ,
+.Dq phonogram ,
+.Dq rune ,
+and
+.Dq special
+character classes are extensions.
.Pp
It should be noted that the feature wherein the last character of
.Ar string2
OpenPOWER on IntegriCloud