"wc" in shell

"wc" gives a "word count" on a file or I/O stream:

For example:


wc -w gives only the word count

wc -l gives only the line count

wc -c gives only the byte count

wc -m gives only the character counter

wc -L gives only the length of the longest line.





posted @ 2015-07-04 16:41  大海星  阅读(109)  评论(0编辑  收藏  举报