home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / prgramer / unix / doc / wc.man < prev    next >
Text File  |  1993-06-13  |  2KB  |  67 lines

  1.  
  2.  
  3.  
  4. WC(1L)                                                     WC(1L)
  5.  
  6.  
  7. NAME
  8.        wc - print the number of bytes, words, and lines in files
  9.  
  10. SYNOPSIS
  11.        wc [-clw] [--bytes] [--chars] [--lines] [--words] [--help]
  12.        [--version] [file...]
  13.  
  14. DESCRIPTION
  15.        This manual page documents the  GNU  version  of  wc.   wc
  16.        counts  the  number  of bytes, whitespace-separated words,
  17.        and newlines in each given file, or the standard input  if
  18.        none  are  given  or  when  a file named `-' is given.  It
  19.        prints one line of counts for each file, and if  the  file
  20.        was given as an argument, it prints the filename following
  21.        the counts.  If more than one filename is given, wc prints
  22.        a  final  line  containing the cumulative counts, with the
  23.        filename `total'.  The counts are printed  in  the  order:
  24.        lines, words, bytes.
  25.  
  26.        By default, wc prints all three counts.  Options can spec-
  27.        ify that only certain counts be printed.  Options  do  not
  28.        undo others previously given, so wc --bytes --words prints
  29.        both the byte counts and the word counts.
  30.  
  31.    OPTIONS
  32.        -c, --bytes, --chars
  33.               Print only the byte counts.
  34.  
  35.        -w, --words
  36.               Print only the word counts.
  37.  
  38.        -l, --lines
  39.               Print only the newline counts.
  40.  
  41.        --help Print a usage message and exit with a non-zero sta-
  42.               tus.
  43.  
  44.        --version
  45.               Print  version  information  on standard error then
  46.               exit.
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64. FSF                     GNU Text Utilities                      1
  65.  
  66.  
  67.