Hamilton LaboratoriesHamilton C shell 2012User guideExternal utilities


Oregon Coast

Previous | Next

        Count Words (and lines and characters)

Usage:  wc [-lwch-] [ file1 file2 ... ]

   wc prints counts of all the lines, words and/or characters in each
   of the files specified, and totals for the whole list.  If no files
   are specified, it counts stdin.


   -l         Count lines
   -w         Count words
   -c         Count characters
   -h         Help
   --         End of options

Default is -lwc.

Previous | Next