![]() |
![]() |
wc [-clLw] [inputfile ...]
By default, wc prints all three counts. Options can specify that only certain counts be printed. Options do not undo others previously given, hence
wc -c -wprints both the character counts and the word counts.
Options are specified in the command line.
-h displays a help screen summarizing the command syntax -c output character count only -l output line count only -L output length of longest line -w output word count only --help displays a help screen summarizing the command syntax
census (4),
grep -c (UNIX)