wc [-l [c|m] wL] [file … ]
Outputs the number of lines, words, and characters in each input file, or standard input (if no file is specified)
to the standard output.
When multiple files are listed
total(s) are shown.
A line is defined as a string of characters delimited by a
Characters beyond the final
NL will not be included in the line count.
A word is defined as a string of characters delimited by white space characters, the set of characters for
which the iswspace(3) function returns true.
>hexdump -C dafileIf no files are specified, the standard input is used accepting input until receiving EOF Usually [^D] † and no file name is displayed.
00000000 31 2c 32 20 33 09 34 0a 0a 0a |1,2 3.4...|
> wc dafile
3 3 10 dafile
> wc -L dafile
$LC_CTYPEaffect as described in environ
Exits 0 on success, and >0 if an error occurs.
wc: inputFilename:489: Invalid or incomplete multibyte or wide character
report2as well as the totals for both:
wc -mlw report1 report2