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

:) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer
Click to see the code!
To insert emoticon you must added at least one space before the code.