About Us Documentation

Contact Site Map



Man Page for WC


       wc - print the number of bytes, words, and lines in files


       wc [-clw] [--bytes] [--chars] [--lines] [--words] [--help]
       [--version] [file...]


       This manual page documents the  GNU  version  of  wc.   wc
       counts  the  number  of bytes, whitespace-separated words,
       and newlines in each given file, or the standard input  if
       none  are  given  or  when  a file named `-' is given.  It
       prints one line of counts for each file, and if  the  file
       was given as an argument, it prints the filename following
       the counts.  If more than one filename is given, wc prints
       a  final  line  containing the cumulative counts, with the
       filename `total'.  The counts are printed  in  the  order:
       lines, words, bytes.

       By default, wc prints all three counts.  Options can spec-
       ify that only certain counts be printed.  Options  do  not
       undo others previously given, so wc --bytes --words prints
       both the byte counts and the word counts.

       -c, --bytes, --chars
              Print only the byte counts.

       -w, --words
              Print only the word counts.

       -l, --lines
              Print only the newline counts.

       --help Print a usage message and exit with a  status  code
              indicating success.

              Print  version  information on standard output then



Email addresses listed on this site may  NOT be used for unsolicited commercial email.

Ready-to-Run Software, Inc Privacy Statement

Portions (c)Copyright, 1996-2005 by Ready-to-Run Software, Inc
(All rights reserved.)
212 Cedar Cove
Phone: 607 533 UNIX (8649)
Fax: 607 533 4002