home *** CD-ROM | disk | FTP | other *** search
-
-
-
- WWWWCCCC((((1111)))) WWWWCCCC((((1111))))
-
-
-
- NNNNAAAAMMMMEEEE
- wc - word, line and byte or character count
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- wwwwcccc [ ----cccc||||----mmmm ] [ ----llllwwww ] [ names ]
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _w_c counts lines, words, and characters or bytes in the named files, or in
- the standard input if no _n_a_m_e_s appear. It also keeps a total count for
- all named files, if more than one input is specified. The _w_c utility
- considers a _w_o_r_d to be a non-zero length string of characters delimited
- by white space.
-
- OOOOPPPPTTTTIIIIOOOONNNNSSSS
- The _w_c utility conforms to the XBD specification in the utility argument
- syntax guideline.
-
- The following options are supported:
-
- ----cccc Write to the standard output the number of bytes in each input file.
-
-
- ----llll Write to the standard output the number of newline characters in
- each input file.
-
- ----mmmm Write to the standard output the number of characters in each input
- file.
-
- ----wwww Write to the standard output the number of words in each input file.
-
- The options llll , wwww , and cccc or mmmm may be used in any combination to specify
- that a subset of lines, words, and bytes or characters are to be
- reported. The default is ----llllwwwwcccc.
-
- When _n_a_m_e_s are specified on the command line, they will be printed along
- with the counts.
-
- OOOOPPPPEEEERRRRAAAANNNNDDDDSSSS
- The following operand is supported:
-
- _f_i_l_e A pathname of an input file. If no file operand is specified, the
- standard input will be used.
-
- SSSSTTTTDDDDIIIINNNN
- The standard input will be used only if no _f_i_l_e operands are specified.
- See IIIINNNNPPPPUUUUTTTT FFFFIIIILLLLEEEESSSS....
-
- IIIINNNNPPPPUUUUTTTT FFFFIIIILLLLEEEESSSS
- The input files may be of any type.
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- WWWWCCCC((((1111)))) WWWWCCCC((((1111))))
-
-
-
- EEEENNNNVVVVIIIIRRRROOOONNNNMMMMEEEENNNNTTTT VVVVAAAARRRRIIIIAAAABBBBLLLLEEEESSSS
- The following environment variables affect the execution of _wwww_cccc:
-
- _LLLL_AAAA_NNNN_GGGG provide a default value for the internationalization variables that
- are unset or null. If _L_A_N_G is unset or null the corresponding value
- from the implementation-specific default locale will be used. If any
- of the internationalization variables contains an invalid setting,
- the utility will behave as if none of the variables had been
- defined.
-
- _LLLL_CCCC______AAAA_LLLL_LLLL
- if set to a non-empty string value, override the values of all the
- other internationalization variables.
-
- _LLLL_CCCC______CCCC_TTTT_YYYY_PPPP_EEEE
- determine the locale for the interpretation of sequences of bytes of
- text data as characters (for example, single - as opposed to multi-
- byte - characters in arguments).
-
- _LLLL_CCCC______MMMM_EEEE_SSSS_SSSS_AAAA_GGGG_EEEE_SSSS
- determine the locale that should be used to affect the format and
- contents of diagnostic messages written to standard error.
-
- _NNNN_LLLL_SSSS_PPPP_AAAA_TTTT_HHHH
- determine the location of message catalogs for the processing of
- _L_C__M_E_S_S_A_G_E_S.
-
- SSSSTTTTDDDDOOOOUUUUTTTT
- By default, the standard output contains an entry for each input file of
- the form:
-
- "%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>
-
- If the ----mmmm option is specified, the number of characters replace the
- <_b_y_t_e_s> field in this format.
-
- If any options are specified and the ----llll option is not specified, the
- number of newline characters will not be written.
-
- If any options are specified and the ----wwww option is not specified, the
- number of words will not be written.
-
- If any options are specified and neither ----cccc nor ----mmmm is specified, the
- number of bytes or characters will not be written.
-
- If no input _f_i_l_e operands are specified, no name will be written and no
- blank characters preceding the path name will be written.
-
- If more than one input _f_i_l_e operand is specified, an additional line will
- be written, of the same format as the other lines, except that the word
- ttttoooottttaaaallll (in the POSIX locale) will be written instead of a pathname and the
- total of each column will be written as appropriate. Such an additional
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-
-
-
- WWWWCCCC((((1111)))) WWWWCCCC((((1111))))
-
-
-
- line, if any, will be written at the end of the output.
-
- SSSSTTTTDDDDEEEERRRRRRRR
- Used only for diagnostic messages.
-
- OOOOUUUUTTTTPPPPUUUUTTTT FFFFIIIILLLLEEEESSSS
- None.
-
- EEEEXXXXIIIITTTT SSSSTTTTAAAATTTTUUUUSSSS
- The following exit values are returned:
- _0000 successful completion
- _>>>>_0000 an error occurred
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 3333
-
-
-
-