wc -- print the number of bytes, words, and lines in files


wc is as specified in the Single UNIX Specification but with differences as listed below.



has unspecified behavior.[1]

LSB Deprecated Differences

The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.

--bytes, --chars

is equivalent to -c.


is equivalent to -l.

-L, --max-line-length

prints the length of the longest line.


is equivalent to -w.


outputs version information and exits.



GNU textutils 2.0 does not have -m, but more recent versions of textutils have it (added on 2000-08-06). The LSB will require this option in the future.