diff options
author | Anthony J. Bentley <bentley@cvs.openbsd.org> | 2015-02-28 21:51:58 +0000 |
---|---|---|
committer | Anthony J. Bentley <bentley@cvs.openbsd.org> | 2015-02-28 21:51:58 +0000 |
commit | eff3ed99ef2bccae897c58214bda6e54d4ce0d3b (patch) | |
tree | 70f6f5748253b248a299b246ff1440902144ff2a /usr.bin/tr/tr.1 | |
parent | b1c3f450e8d0a18f3dac514bec9232ba1d0392b3 (diff) |
Reduce usage of predefined strings in manpages.
Predefined strings are not very portable across troff implementations,
and they make the source much harder to read. Usually the intended
character can be written directly.
No output changes, except for two instances where the incorrect escape
was used in the first place.
tweaks + ok schwarze@
Diffstat (limited to 'usr.bin/tr/tr.1')
-rw-r--r-- | usr.bin/tr/tr.1 | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/tr/tr.1 b/usr.bin/tr/tr.1 index 54861b59ec7..86b9b8291a2 100644 --- a/usr.bin/tr/tr.1 +++ b/usr.bin/tr/tr.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: tr.1,v 1.24 2014/12/09 15:37:14 schwarze Exp $ +.\" $OpenBSD: tr.1,v 1.25 2015/02/28 21:51:57 bentley Exp $ .\" $NetBSD: tr.1,v 1.5 1994/12/07 08:35:13 jtc Exp $ .\" .\" Copyright (c) 1991, 1993 @@ -33,7 +33,7 @@ .\" .\" @(#)tr.1 8.1 (Berkeley) 6/6/93 .\" -.Dd $Mdocdate: December 9 2014 $ +.Dd $Mdocdate: February 28 2015 $ .Dt TR 1 .Os .Sh NAME @@ -271,15 +271,15 @@ The following examples are shown as given to the shell: Create a list of the words in file1, one per line, where a word is taken to be a maximal string of letters. .Pp -.Dl $ tr -cs \*q[:alpha:]\*q \*q\en\*q < file1 +.Dl $ tr -cs Qo [:alpha:] Qc Qo \en Qc < file1 .Pp Translate the contents of file1 to upper-case. .Pp -.Dl $ tr \*q[:lower:]\*q \*q[:upper:]\*q < file1 +.Dl $ tr Qo [:lower:] Qc Qo [:upper:] Qc < file1 .Pp Strip out non-printable characters from file1. .Pp -.Dl $ tr -cd \*q[:print:]\*q < file1 +.Dl $ tr -cd Qo [:print:] Qc < file1 .Sh SEE ALSO .Xr sed 1 .Sh STANDARDS |