HP-UX Reference (11i v1 05/09) - 1 User Commands N-Z (vol 2)
w
wc(1) wc(1)
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
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.
STANDARDS CONFORMANCE
wc: SVID2, SVID3, XPG2, XPG3, XPG4, POSIX.2
Section 1−−1058 Hewlett-Packard Company − 2 − HP-UX 11i Version 1: September 2005