home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / u_man / cat1 / wc.z / wc
Encoding:
Text File  |  2002-10-03  |  6.2 KB  |  199 lines

  1.  
  2.  
  3.  
  4. WWWWCCCC((((1111))))                                                                    WWWWCCCC((((1111))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      wc - word, line and byte or character count
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      wwwwcccc [ ----cccc||||----mmmm ] [ ----llllwwww ] [ names ]
  13.  
  14. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  15.      _w_c counts lines, words, and characters or bytes in the named files, or in
  16.      the standard input if no _n_a_m_e_s appear.  It also keeps a total count for
  17.      all named files, if more than one input is specified.  The _w_c utility
  18.      considers a _w_o_r_d to be a non-zero length string of characters delimited
  19.      by white space.
  20.  
  21. OOOOPPPPTTTTIIIIOOOONNNNSSSS
  22.      The _w_c utility conforms to the XBD specification in the utility argument
  23.      syntax guideline.
  24.  
  25.      The following options are supported:
  26.  
  27.      ----cccc   Write to the standard output the number of bytes in each input file.
  28.  
  29.  
  30.      ----llll   Write to the standard output the number of newline characters in
  31.           each input file.
  32.  
  33.      ----mmmm   Write to the standard output the number of characters in each input
  34.           file.
  35.  
  36.      ----wwww   Write to the standard output the number of words in each input file.
  37.  
  38.      The options llll , wwww , and cccc or mmmm may be used in any combination to specify
  39.      that a subset of lines, words, and bytes or characters are to be
  40.      reported.  The default is ----llllwwwwcccc.
  41.  
  42.      When _n_a_m_e_s are specified on the command line, they will be printed along
  43.      with the counts.
  44.  
  45. OOOOPPPPEEEERRRRAAAANNNNDDDDSSSS
  46.      The following operand is supported:
  47.  
  48.      _f_i_l_e A pathname of an input file. If no file operand is specified, the
  49.           standard input will be used.
  50.  
  51. SSSSTTTTDDDDIIIINNNN
  52.      The standard input will be used only if no _f_i_l_e operands are specified.
  53.      See IIIINNNNPPPPUUUUTTTT FFFFIIIILLLLEEEESSSS....
  54.  
  55. IIIINNNNPPPPUUUUTTTT FFFFIIIILLLLEEEESSSS
  56.      The input files may be of any type.
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. WWWWCCCC((((1111))))                                                                    WWWWCCCC((((1111))))
  71.  
  72.  
  73.  
  74. EEEENNNNVVVVIIIIRRRROOOONNNNMMMMEEEENNNNTTTT VVVVAAAARRRRIIIIAAAABBBBLLLLEEEESSSS
  75.      The following environment variables affect the execution of _wwww_cccc:
  76.  
  77.      _LLLL_AAAA_NNNN_GGGG provide a default value for the internationalization variables that
  78.           are unset or null.  If _L_A_N_G is unset or null the corresponding value
  79.           from the implementation-specific default locale will be used. If any
  80.           of the internationalization variables contains an invalid setting,
  81.           the utility will behave as if none of the variables had been
  82.           defined.
  83.  
  84.      _LLLL_CCCC______AAAA_LLLL_LLLL
  85.           if set to a non-empty string value, override the values of all the
  86.           other internationalization variables.
  87.  
  88.      _LLLL_CCCC______CCCC_TTTT_YYYY_PPPP_EEEE
  89.           determine the locale for the interpretation of sequences of bytes of
  90.           text data as characters (for example, single - as opposed to multi-
  91.           byte - characters in arguments).
  92.  
  93.      _LLLL_CCCC______MMMM_EEEE_SSSS_SSSS_AAAA_GGGG_EEEE_SSSS
  94.           determine the locale that should be used to affect the format and
  95.           contents of diagnostic messages written to standard error.
  96.  
  97.      _NNNN_LLLL_SSSS_PPPP_AAAA_TTTT_HHHH
  98.           determine the location of message catalogs for the processing of
  99.           _L_C__M_E_S_S_A_G_E_S.
  100.  
  101. SSSSTTTTDDDDOOOOUUUUTTTT
  102.      By default, the standard output contains an entry for each input file of
  103.      the form:
  104.  
  105.      "%d %d %d %s\n", <_n_e_w_l_i_n_e_s> , <_w_o_r_d_s> , <_b_y_t_e_s> , <_f_i_l_e>
  106.  
  107.      If the ----mmmm option is specified, the number of characters replace the
  108.      <_b_y_t_e_s> field in this format.
  109.  
  110.      If any options are specified and the ----llll option is not specified, the
  111.      number of newline characters will not be written.
  112.  
  113.      If any options are specified and the ----wwww option is not specified, the
  114.      number of words will not be written.
  115.  
  116.      If any options are specified and neither ----cccc nor ----mmmm is specified, the
  117.      number of bytes or characters will not be written.
  118.  
  119.      If no input _f_i_l_e operands are specified, no name will be written and no
  120.      blank characters preceding the path name will be written.
  121.  
  122.      If more than one input _f_i_l_e operand is specified, an additional line will
  123.      be written, of the same format as the other lines, except that the word
  124.      ttttoooottttaaaallll (in the POSIX locale) will be written instead of a pathname and the
  125.      total of each column will be written as appropriate. Such an additional
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. WWWWCCCC((((1111))))                                                                    WWWWCCCC((((1111))))
  137.  
  138.  
  139.  
  140.      line, if any, will be written at the end of the output.
  141.  
  142. SSSSTTTTDDDDEEEERRRRRRRR
  143.      Used only for diagnostic messages.
  144.  
  145. OOOOUUUUTTTTPPPPUUUUTTTT FFFFIIIILLLLEEEESSSS
  146.      None.
  147.  
  148. EEEEXXXXIIIITTTT SSSSTTTTAAAATTTTUUUUSSSS
  149.      The following exit values are returned:
  150.      _0000   successful completion
  151.      _>>>>_0000  an error occurred
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.