Friday 22 August 2014

UNIX: wc Command

wc Command:
This wc command is useful to identify the content strength of a file like, no of lines, no of words and no of characters.


wc -l path/filename.txt

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

w –l /etl/IS/Data/ck2.txt


wc -lcw abc_file.txt


No comments:

Post a Comment