Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|improve this question

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

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

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
add comment

1 Answer 1

Lines: wc -l filename.txt

Characters: wc -m filename.txt

Words: wc -w filename.txt

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.