version 1.24, 2015/03/13 19:58:41 |
version 1.25, 2015/04/21 10:46:48 |
|
|
The number of lines in each input file |
The number of lines in each input file |
is written to the standard output. |
is written to the standard output. |
.It Fl m |
.It Fl m |
The number of characters in each input file |
Intended to count characters instead of bytes; |
is written to the standard output. |
currently an alias for |
|
.Fl c . |
.It Fl w |
.It Fl w |
The number of words in each input file |
The number of words in each input file |
is written to the standard output. |
is written to the standard output. |
|
|
The default action is equivalent to the flags |
The default action is equivalent to the flags |
.Fl clw |
.Fl clw |
having been specified. |
having been specified. |
The |
|
.Fl c |
|
and |
|
.Fl m |
|
options are mutually exclusive. |
|
.Pp |
.Pp |
If no file names are specified, the standard input is used |
If no file names are specified, the standard input is used |
and a file name is not output. |
and a file name is not output. |
|
|
lines words bytes file_name |
lines words bytes file_name |
.Ed |
.Ed |
.Pp |
.Pp |
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 |
The counts for lines, words, and bytes |
.Pq or characters |
.Pq or characters |
are integers separated by spaces. |
are integers separated by spaces. |
|
|
.Nm |
.Nm |
utility is compliant with the |
utility is compliant with the |
.St -p1003.1-2008 |
.St -p1003.1-2008 |
specification. |
specification, except that it ignores the locale. |
.Pp |
.Pp |
The flag |
The flag |
.Op Fl h |
.Op Fl h |
|
|
.Nm |
.Nm |
utility appeared in |
utility appeared in |
.At v1 . |
.At v1 . |
|
.Sh BUGS |
|
The |
|
.Fl m |
|
option counts bytes instead of characters. |