How can i count characters, words and lines from a file with wc command?

link|improve this question
4  
does wc --help not work? – SilentGhost Mar 25 '10 at 11:55
1  
Try: man wc . – Yacoby Mar 25 '10 at 11:56
1  
look at the man wc page. or info wc page – user31894 Mar 25 '10 at 11:57
feedback

migrated from stackoverflow.com Mar 25 '10 at 11:57

This question came from our site for professional and enthusiast programmers.

1 Answer

Lines: wc -l filename.txt

Characters: wc -m filename.txt

Words: wc -w filename.txt

http://www.computerhope.com/unix/uwc.htm

link|improve this answer
feedback

Your Answer

 
or
required, but never shown