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.

cu<br />

Description<br />

Note: The cu utility is fully supported for compatibility with older <strong>UNIX</strong> systems.<br />

However, because it is no longer supported by P<strong>OS</strong>IX.2 IEEE standard<br />

1003.2-1992, this utility should be avoided for applications intended to be<br />

portable to other <strong>UNIX</strong>- branded systems.<br />

cu connects to remote systems specified in the UUCP configuration file. You can<br />

use it for simple terminal connections, or to do simple file transfer with no error<br />

checking.<br />

cu is recognized, but its functions are disabled. Traditionally, it is used for simple<br />

terminal connections to remote systems specified in the UUCP configuration file. cu<br />

requires a direct connection (such as with a modem) to the remote system, but this<br />

is not supported by z/<strong>OS</strong>.<br />

cut — Cut out selected fields from each line of a file<br />

Format<br />

Description<br />

Options<br />

cut –b list [–n] [file...]<br />

cut –c list [file...]<br />

cut –f list [–d char] [–s] [file...]<br />

cut reads input from files, each specified with the file argument, and selectively<br />

copies sections of the input lines to the standard output (stdout). If you do not<br />

specify any file, or if you specify a file named –, cut reads from standard input<br />

(stdin).<br />

–b list Invokes byte position mode. After this comes a list of the byte positions you<br />

want to display. This list may contain multiple byte positions, separated by<br />

commas (,) or blanks or ranges of positions separated by dashes (–). Since<br />

the list must be a single argument, shell quoting is necessary if you use<br />

blanks. You can combine these to allow selection of any byte positions of<br />

the input.<br />

Attention: When using the –b option with doublebyte characters, you<br />

should also specify the –n option to ensure that entire characters are<br />

displayed. If you do not specify the –n option, cut simply assumes that the<br />

low byte of a range is the first byte of a character and that the high byte of<br />

a range is the last byte of a doublebyte character, possibility resulting in the<br />

misinterpretation of the characters represented by those byte positions.<br />

–c list Invokes character-position mode. After this comes a list of character<br />

positions to retain in the output. This list can contain many character<br />

positions, separated by commas (,) or blanks or ranges of positions<br />

separated by a dash (–). Since the list must be a single argument, shell<br />

quoting is necessary if you use blanks. You can combine these to allow<br />

selection of any character positions of the input.<br />

–d char<br />

Specifies char as the character that separates fields in the input data; by<br />

default, this is the horizontal tab.<br />

–f list Invokes field delimiter mode. After this comes a list of the fields you want to<br />

178 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!