Search This Blog

Sunday, 5 October 2014

wc Command

wc Command
To use wc command to get no of words/lines/characters

wc -l path/filename.txt

-l             Display no. of lines
-w           Display no. of words
-c            Display no. of characters

wc -lcw path/filename.txt


The above command gives lines, words and character details of the file

No comments:

Post a Comment