minix/man/man1/wc.1

41 lines
665 B
Groff
Raw Normal View History

2005-05-02 15:01:42 +02:00
.TH WC 1
.SH NAME
wc \- count characters, words, and lines in a file
.SH SYNOPSIS
\fBwc\fR [\fB\-clw\fR] \fIfile\fR ...\fR
.br
.de FL
.TP
\\fB\\$1\\fR
\\$2
..
.de EX
.TP 20
\\fB\\$1\\fR
# \\$2
..
.SH OPTIONS
2012-03-31 23:44:29 +02:00
.TP 5
.B \-c
# Print character count
.TP 5
.B \-l
# Print line count
.TP 5
.B \-w
# Print word count
2005-05-02 15:01:42 +02:00
.SH EXAMPLES
2012-03-31 23:44:29 +02:00
.TP 20
.B wc file1 file2
# Print all three counts for both files
.TP 20
.B wc \-l file
# Print line count only
2005-05-02 15:01:42 +02:00
.SH DESCRIPTION
.PP
.I Wc
reads each argument and computes the number of characters, words and lines
it contains.
A word is delimited by white space (space, tab, or line feed).
If no flags are present, all three counts are printed.