next up previous contents
Next: diff: Difference Up: File system Commands: Files Previous: tail: Tail End   Contents

wc: Word Count

wc [-lwc] filename...

The default is to use all three flags:

l
- lines.
w
- words.
c
- characters.

With linux the l, w and c flags may be replaced with the lines, words and bytes longflags, respectively.

Here is an example:

    prompt> wc course.tex course.aux

        810    4137    27849 course.tex
         51     200     5095 course.aux
        861    4337    32944 total

The first field is the line count, the second field is the word count, the third field is the character count (size of the file) and the last field is the name of the file (only if more than one file is used).



Claude Cantin 2010-10-24