the wc command use to count number of characters, words and lines in the input file.

it has the following options

-l prints lines count.

-c print characters count.

-w prints words count.

-L prints the length of the longest line in the file.

example:

wc -l fileName

Advertisements