1WC(1) User Commands WC(1)
2
3
4
6 wc - print newline, word, and byte counts for each file
7
9 wc [OPTION]... [FILE]...
10 wc [OPTION]... --files0-from=F
11
13 Print newline, word, and byte counts for each FILE, and a total line if
14 more than one FILE is specified. With no FILE, or when FILE is -, read
15 standard input.
16
17 -c, --bytes
18 print the byte counts
19
20 -m, --chars
21 print the character counts
22
23 -l, --lines
24 print the newline counts
25
26 --files0-from=F
27 read input from the files specified by NUL-terminated names in
28 file F
29
30 -L, --max-line-length
31 print the length of the longest line
32
33 -w, --words
34 print the word counts
35
36 --help display this help and exit
37
38 --version
39 output version information and exit
40
42 Written by Paul Rubin and David MacKenzie.
43
45 Report bugs to <bug-coreutils@gnu.org>.
46
48 Copyright © 2007 Free Software Foundation, Inc.
49 This is free software. You may redistribute copies of it under the
50 terms of the GNU General Public License
51 <http://www.gnu.org/licenses/gpl.html>. There is NO WARRANTY, to the
52 extent permitted by law.
53
55 The full documentation for wc is maintained as a Texinfo manual. If
56 the info and wc programs are properly installed at your site, the com‐
57 mand
58
59 info wc
60
61 should give you access to the complete manual.
62
63
64
65GNU coreutils 6.9 March 2008 WC(1)