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 ,
Saturday, January 14, 2012
0 comments:
Post a Comment