Wc
By using the UNIX utility wc, the user can count all the lines, characters and words in a file.
Syntax
wc [options] filename
The given options could be used with wc command.
-l denotes the number of lines
-w denotes the number of words
-c denotes the number of characters
Let Consider the following
# wc num
12 12 36 num
By the output it can be seen that there are four fields:
Number of lines 12
Number of words 12
Total number of characters 36
Name of the file num