wc.1 (2010 09)
w
wc(1) wc(1)
International Code Set Support
Single- and multibyte character code sets are supported. with a newline character, the count will be off
by one.
WARNINGS
The
wc command counts the number of newlines to determine the line count. If a text file has a final line
that is not terminated with a newline character, the count will be off by one.
EXAMPLES
Print the number of words and characters in
file1:
wc -wm file1
The following is printed when the above command is executed:
words chars
file1
where words is the number of words and chars is the number of characters in
file1.
SEE ALSO
standards(5).
STANDARDS CONFORMANCE
wc: SVID2, SVID3, XPG2, XPG3, XPG4, POSIX.2
2 Hewlett-Packard Company − 2 − HP-UX 11i Version 3: September 2010