Rev | Line | |
---|
[9] | 1 | .TH WC 1
|
---|
| 2 | .SH NAME
|
---|
| 3 | wc \- count characters, words, and lines in a file
|
---|
| 4 | .SH SYNOPSIS
|
---|
| 5 | \fBwc\fR [\fB\-clw\fR] \fIfile\fR ...\fR
|
---|
| 6 | .br
|
---|
| 7 | .de FL
|
---|
| 8 | .TP
|
---|
| 9 | \\fB\\$1\\fR
|
---|
| 10 | \\$2
|
---|
| 11 | ..
|
---|
| 12 | .de EX
|
---|
| 13 | .TP 20
|
---|
| 14 | \\fB\\$1\\fR
|
---|
| 15 | # \\$2
|
---|
| 16 | ..
|
---|
| 17 | .SH OPTIONS
|
---|
| 18 | .FL "\-c" "Print character count"
|
---|
| 19 | .FL "\-l" "Print line count"
|
---|
| 20 | .FL "\-w" "Print word count"
|
---|
| 21 | .SH EXAMPLES
|
---|
| 22 | .EX "wc file1 file2" "Print all three counts for both files"
|
---|
| 23 | .EX "wc \-l file" "Print line count only"
|
---|
| 24 | .SH DESCRIPTION
|
---|
| 25 | .PP
|
---|
| 26 | .I Wc
|
---|
| 27 | reads each argument and computes the number of characters, words and lines
|
---|
| 28 | it contains.
|
---|
| 29 | A word is delimited by white space (space, tab, or line feed).
|
---|
| 30 | If no flags are present, all three counts are printed.
|
---|
Note:
See
TracBrowser
for help on using the repository browser.