next up previous contents
Next: Finding patterns in files Up: Other useful commands Previous: Checking disk usage   Contents

Counting the number of characters, words and lines

The command wc <filenames> counts lines, words and characters for each file. Using wc -l counts number of lines only. (wc is short for word count)



Amit Jain 2009-08-23