Commit | Line | Data |
---|---|---|
dbc65dd4 KM |
1 | .\" Copyright (c) 1980 Regents of the University of California. |
2 | .\" All rights reserved. The Berkeley software License Agreement | |
3 | .\" specifies the terms and conditions for redistribution. | |
4 | .\" | |
4e60a21a | 5 | .\" @(#)wc.1 6.1 (Berkeley) %G% |
dbc65dd4 | 6 | .\" |
4e60a21a | 7 | .TH WC 1 "" |
dbc65dd4 KM |
8 | .UC 4 |
9 | .SH NAME | |
10 | wc \- word count | |
11 | .SH SYNOPSIS | |
12 | .B wc | |
13 | [ | |
19dc48f5 KM |
14 | .B \-lwc |
15 | ] | |
16 | [ name ... ] | |
dbc65dd4 | 17 | .SH DESCRIPTION |
19dc48f5 | 18 | .PP |
dbc65dd4 | 19 | .I Wc |
19dc48f5 KM |
20 | counts lines, words and characters |
21 | in the named files, or in the standard input if no name appears. | |
22 | A word is a maximal string of characters delimited by spaces, tabs or newlines. | |
dbc65dd4 | 23 | .PP |
19dc48f5 KM |
24 | If an argument beginning with one of ``lwc'' is present, |
25 | the specified counts (lines, words, or characters) | |
dbc65dd4 KM |
26 | are selected by the letters |
27 | .BR l , | |
28 | .BR w , | |
dbc65dd4 | 29 | or |
19dc48f5 | 30 | .BR c . |
dbc65dd4 | 31 | The default is |
19dc48f5 | 32 | .BR \-lwc . |
dbc65dd4 | 33 | .SH BUGS |