BSD 1 development
[unix-history] / man6 / wc.6
CommitLineData
0b14d649
BJ
1.th WC VI 8/25/77
2.sh NAME
3wc \*- word count
4.sh SYNOPSIS
5.bd wc
6[
7.bd \-
8]
9[ name ... ]
10.sh DESCRIPTION
11.it Wc
12counts lines, words, and characters in the named files,
13or in the standard input if no name appears.
14A word is a maximal string of printing characters
15delimited by spaces, tabs or newlines.
16All other characters are simply ignored.
17.s3
18The optional
19.bd \-
20suppresses all the garbage for a word count only.
21.s3
22If the file
23.it sentence
24contains
25.s3
26.dt
27 Now is the time for all good men to come
28.br
29 to the aid of their party.
30.s3
31on two lines then
32.it "wc sentence"
33would give
34.s3
35 2 16 68 sentence
36.s3
37indicating that there are 2 lines, 16 words and 68 characters in
38sentence.
39Note that the counts are for successively smaller pieces of the file,
40although occasionally a file will have more lines than words.
41.sh SEE\ ALSO
42grep (I)
43.sh BUGS