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