summaryrefslogtreecommitdiff
path: root/usr.bin/wc/wc.1
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2000-03-14 14:58:28 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2000-03-14 14:58:28 +0000
commit96210b552abc81426a18b2ef15b867a9eeab4e87 (patch)
treefa6fe9da32bb8d4b0c3c2714267bda30221930cd /usr.bin/wc/wc.1
parente1f503677d44446ce65750011a5f31a05bece8b6 (diff)
Finish off cleanup usr.bin/ man pages.
Diffstat (limited to 'usr.bin/wc/wc.1')
-rw-r--r--usr.bin/wc/wc.142
1 files changed, 23 insertions, 19 deletions
diff --git a/usr.bin/wc/wc.1 b/usr.bin/wc/wc.1
index fb634256234..3c872537c71 100644
--- a/usr.bin/wc/wc.1
+++ b/usr.bin/wc/wc.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: wc.1,v 1.8 2000/03/06 03:17:40 aaron Exp $
+.\" $OpenBSD: wc.1,v 1.9 2000/03/14 14:58:25 aaron Exp $
.\"
.\" Copyright (c) 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -49,16 +49,17 @@
.Op Ar file ...
.Sh DESCRIPTION
The
-.Nm wc
+.Nm
utility reads one or more input text files, and, by
default, writes the number of lines, words, and bytes
contained in each input file to the standard output.
If more than one input file is specified,
a line of cumulative count(s) for all named files is output on a
separate line following the last file count.
-.Nm wc
+.Nm
considers a word to be a maximal string of characters delimited by white
-space. White space characters are the set of characters for which the
+space.
+Whitespace characters are the set of characters for which the
.Xr isspace 3
function returns true.
.Pp
@@ -79,11 +80,12 @@ is written to the standard output.
.El
.Pp
When an option is specified,
-.Nm wc
+.Nm
only reports the information requested by that option.
The default action is equivalent to the flags
.Fl clw
-having been specified. The
+having been specified.
+The
.Fl c
and
.Fl m
@@ -110,23 +112,13 @@ The counts for lines, words and bytes are integers separated
by spaces.
.Pp
The
-.Nm wc
+.Nm
utility exits 0 on success or >0 if an error occurred.
.Sh SEE ALSO
.Xr isspace 3
-.Sh STANDARDS
-The
-.Nm wc
-utility conforms to
-.St -p1003.2-92 .
-.Sh HISTORY
-A
-.Nm
-utility appeared in
-.At v1 .
.Sh COMPATIBILITY
Historically, the
-.Nm wc
+.Nm
utility was documented to define a word as a ``maximal string of
characters delimited by <space>, <tab> or <newline> characters''.
The implementation, however, didn't handle non-printing characters
@@ -134,7 +126,19 @@ correctly so that `` ^D^E '' counted as 6 spaces, while ``foo^D^Ebar''
counted as 8 characters.
4BSD systems after 4.3BSD modified the implementation to be consistent
with the documentation.
-This implementation defines a ``word'' in terms of the
+This implementation defines a
+.Dq word
+in terms of the
.Xr isspace 3
function, as required by
.St -p1003.2-92 .
+.Sh STANDARDS
+The
+.Nm
+utility conforms to
+.St -p1003.2-92 .
+.Sh HISTORY
+A
+.Nm
+utility appeared in
+.At v1 .