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 printable 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, al‐
20 ways 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 --total=WHEN
43 when to print a line with total counts; WHEN can be: auto, al‐
44 ways, only, never
45
46 --help display this help and exit
47
48 --version
49 output version information and exit
50
52 Written by Paul Rubin and David MacKenzie.
53
55 GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
56 Report any translation bugs to <https://translationproject.org/team/>
57
59 Copyright © 2023 Free Software Foundation, Inc. License GPLv3+: GNU
60 GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
61 This is free software: you are free to change and redistribute it.
62 There is NO WARRANTY, to the extent permitted by law.
63
65 Full documentation <https://www.gnu.org/software/coreutils/wc>
66 or available locally via: info '(coreutils) wc invocation'
67
68
69
70GNU coreutils 9.3 September 2023 WC(1)