blob: 684f4fb48c6159598323d8db84cb3d0b7e17b568 [file] [log] [blame]
rsccfa37a72004-04-10 18:53:55 +00001.TH WC 1
2.SH NAME
3wc \- word count
4.SH SYNOPSIS
5.B wc
6[
7.B -lwrbc
8]
9[
10.I file ...
11]
12.SH DESCRIPTION
13.I Wc
14counts lines, words, runes, syntactically-invalid
15.SM UTF
16codes and bytes in the named
17.IR files ,
18or in the standard input if no file is named.
19A word is a maximal string of characters
20delimited by spaces, tabs or newlines.
21The count of runes includes invalid codes.
22.PP
23If the optional argument is present,
24just the specified counts (lines, words, runes, broken
25.SM UTF
26codes or bytes)
27are selected by the letters
28.BR l ,
29.BR w ,
30.BR r ,
31.BR b ,
32or
33.BR c .
34Otherwise, lines, words and bytes
35.RB ( -lwc )
36are reported.
37.SH SOURCE
rscb5fdffe2004-04-19 19:22:56 +000038.B /usr/local/plan9/src/cmd/wc.c
rsccfa37a72004-04-10 18:53:55 +000039.SH BUGS
40The Unicode Standard has many blank characters scattered through it,
41but
42.I wc
43looks for only
44.SM ASCII
45space, tab and newline.
46.br
47.I Wc
48should have options to count suboptimal
49.SM UTF
50codes
51and bytes that cannot occur in any
52.SM UTF
53code.