home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 May / W2KPRK.iso / apps / posix / source / MAN / WC.PRT < prev   
Text File  |  1999-11-17  |  2KB  |  67 lines

  1.                                                            WC (1)
  2.  
  3. NAME
  4.  
  5.   wc - Word, line, and byte count.
  6.  
  7. SYNOPSIS
  8.  
  9.   wc [ clw ] [ file ]
  10. DESCRIPTION
  11.  
  12.   The wc utility reads one or more input text files, and, by  de-
  13. fault,  writes the number of lines, words, and bytes contained in
  14. each input file to the standard output.  If more than  one  input
  15. file  is  specified,  a line of cumulative count(s) for all named
  16. files is output on a separate line following the last file count.
  17. Wc considers a word to be a maximal string of characters delimit-
  18. ed by white space.
  19.   The following options are available:
  20.      c - The number of bytes in each input file is written to the
  21.      standard output.
  22.      l - The number of lines in each input file is written to the
  23.      standard output.
  24.      w - The number of words in each input file is written to the
  25.      standard output.
  26.   When an option is specified, wc only  reports  the  information
  27. requested by that option. The default action is equivalent to all
  28. the flags having been specified.
  29.   The following operands are available:
  30.      file - A pathname of an input file.
  31.   If no file names are specified, the standard input is used  and
  32. a  file  name  is not output. The resulting output is one line of
  33. the requested count(s) with the cumulative sum of all files  read
  34. in via standard input.
  35.   By default, the standard output contains a line for each  input
  36. file of the form: lines    words  bytes   file_name
  37.   The counts for lines, words and bytes are integers separated by
  38. spaces.   The  ordering  of  the  display of the number of lines,
  39. words, and/or bytes is the order in which the options were speci-
  40. fied.
  41.   The wc utility exits 0 on success, and >0 if an error occurs.
  42. STANDARDS
  43.  
  44.   The wc function conforms to
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.