diff options
author | Jason McIntyre <jmc@cvs.openbsd.org> | 2004-04-07 08:02:57 +0000 |
---|---|---|
committer | Jason McIntyre <jmc@cvs.openbsd.org> | 2004-04-07 08:02:57 +0000 |
commit | 7b3a227fa9e7941a2ac6eaec522cf474ffaa27b3 (patch) | |
tree | d9ca791ed240c138c55917e571c8eaef5437941c /usr.bin/wc | |
parent | a6db61c691f3ecbf032a54c0ace7fbb604851147 (diff) |
- alter .Nd to reflect that characters can be counted also
(syncs description w/ posix)
- remove unnecessary .Fl
- note that the default listing may show character, rather than
byte, count
started by PR from Juan Vera (#3738)
Diffstat (limited to 'usr.bin/wc')
-rw-r--r-- | usr.bin/wc/wc.1 | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/usr.bin/wc/wc.1 b/usr.bin/wc/wc.1 index 2801ca31dc6..91db7ccc4ac 100644 --- a/usr.bin/wc/wc.1 +++ b/usr.bin/wc/wc.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: wc.1,v 1.13 2003/06/10 09:12:12 jmc Exp $ +.\" $OpenBSD: wc.1,v 1.14 2004/04/07 08:02:56 jmc Exp $ .\" .\" Copyright (c) 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -37,10 +37,10 @@ .Os .Sh NAME .Nm wc -.Nd word, line, and byte count +.Nd word, line, and byte or character count .Sh SYNOPSIS .Nm wc -.Op Fl c | Fl m +.Op Fl c | m .Op Fl lw .Op Ar file ... .Sh DESCRIPTION @@ -105,8 +105,14 @@ input file of the form: lines words bytes file_name .Ed .Pp -The counts for lines, words and bytes are integers separated -by spaces. +If the +.Fl m +option is specified, +the number of bytes is replaced by +the number of characters in the listing above. +The counts for lines, words, and bytes +.Pq or characters +are integers separated by spaces. .Pp The .Nm |