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. A word is a non-zero-length sequence of characters
16 delimited by white space. The options below may be used to select
17 which counts are printed, always in the following order: newline, word,
18 character, byte, maximum line length.
19
20 -c, --bytes
21 print the byte counts
22
23 -m, --chars
24 print the character counts
25
26 -l, --lines
27 print the newline counts
28
29 --files0-from=F
30 read input from the files specified by NUL-terminated names in
31 file F; If F is - then read names from standard input
32
33 -L, --max-line-length
34 print the length of the longest line
35
36 -w, --words
37 print the word counts
38
39 --help display this help and exit
40
41 --version
42 output version information and exit
43
44 GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
45 Report wc translation bugs to <http://translationproject.org/team/>
46
48 Written by Paul Rubin and David MacKenzie.
49
51 Copyright © 2013 Free Software Foundation, Inc. License GPLv3+: GNU
52 GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
53 This is free software: you are free to change and redistribute it.
54 There is NO WARRANTY, to the extent permitted by law.
55
57 The full documentation for wc is maintained as a Texinfo manual. If
58 the info and wc programs are properly installed at your site, the com‐
59 mand
60
61 info coreutils 'wc invocation'
62
63 should give you access to the complete manual.
64
65
66
67GNU coreutils 8.22 October 2018 WC(1)