16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

wc<br />

Localization<br />

Exit Values<br />

Portability<br />

Related Information<br />

awk, ed, vi<br />

–m Prints a character count. You cannot specify this option with –c.<br />

–w Prints a word count<br />

The order of options can dictate the order in which wc displays counts. For<br />

example, wc –cwl displays the number of bytes, then the number of words, then<br />

the number of s. If you do not specify any options, the default is wc –lwc<br />

( count, then words, then bytes).<br />

A word is considered to be a character or characters delimited by white space.<br />

Note: If you have a file containing doublebyte characters, the byte count is higher<br />

than the character count.<br />

wc uses the following localization environment variables:<br />

v LANG<br />

v LC_ALL<br />

v LC_CTYPE<br />

v LC_MESSAGES<br />

v NLSPATH<br />

See Appendix F for more information.<br />

0 Successful completion<br />

1 Failure because of an inability to open the input file<br />

2 Failure because of an incorrect command-line option<br />

P<strong>OS</strong>IX.2, X/Open Portability Guide, <strong>UNIX</strong> systems.<br />

The way the order of options –c, –l and –w affects the order of display is an<br />

extension to traditional implementations of wc.<br />

whence — Tell how the shell interprets a command name<br />

Format<br />

Description<br />

Options<br />

whence [–v] name ...<br />

whence tells how the shell would interpret each name if used as a command name.<br />

Shell keywords, aliases, functions, built-in commands, and executable files are<br />

distinguished. For executable files, the full pathname is given. If the executable file<br />

is a tracked alias, the string identifies it as cached.<br />

–v Gives a more verbose report.<br />

790 z/<strong>OS</strong> <strong>V1R9.0</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> <strong>Command</strong> Reference

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!