Saturday, January 14, 2012
12:02 PM

wc command in Linux/Unix

wc command in Linux/Unix


                                             wc is short form for word count . wc counts number of lines , words and characters in a file.

Syntax


                    wc  [option]  filename


Example
$ wc abc.lst

2 8 31 abc.lst
* 2 = Number of lines.
* 8 = Number of words.
* 31 = Number of bytes.
* abc.lst = Name of the file.


Instead of printing all the counts ,

0 comments:

Post a Comment