home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / GNUTUE.ZIP / man / wc.man < prev   
Text File  |  1992-07-18  |  1KB  |  35 lines

  1. NAME
  2.      wc - print the number of bytes, words, and lines in files
  3.  
  4. SYNOPSIS
  5.      wc [-clw] [--bytes] [--chars] [--lines] [--words] [file...]
  6.  
  7. DESCRIPTION
  8.      This manual page documents the GNU version of wc.  wc counts  the  number
  9.      of bytes, whitespace-separated words, and newlines in each given file, or
  10.      the standard input if none are given or when a file named `-'  is  given.
  11.      It  prints one line of counts for each file, and if the file was given as
  12.      an argument, it prints the filename following the counts.  If  more  than
  13.      one  filename  is given, wc prints a final line containing the cumulative
  14.      counts, with the filename `total'.  The counts are printed in the  order:
  15.      lines, words, bytes.
  16.  
  17.      By default, wc prints all three counts.  Options can  specify  that  only
  18.      certain  counts be printed.  Options do not undo others previously given,
  19.      so wc --bytes --words prints both the byte counts and the word counts.
  20.  
  21.      OPTIONS
  22.  
  23.      -c, --bytes, --chars
  24.           Print only the byte counts.
  25.  
  26.      -w, --words
  27.           Print only the word counts.
  28.  
  29.      -l, --lines
  30.           Print only the newline counts.
  31.  
  32.      The long-named options can be introduced with `+' as well  as  `--',  for
  33.      compatibility with previous releases.  Eventually support for `+' will be
  34.      removed, because it is incompatible with the POSIX.2 standard.
  35.