wc

Name

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

Description

wc is as specified in the SUS but with differences as listed below.

Differences

-m

has implementation-dependent 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.

--lines

is equivalent to -l.

-L, --max-line-length

prints the length of the longest line.

--words

is equivalent to -w.

--version

outputs version information and exits.

Notes

[1]

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.