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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Example<br />

Localization<br />

Exit Values<br />

Portability<br />

display. You specify ranges of fields and multiple field numbers in the same<br />

way you specify ranges of character positions and multiple character<br />

positions in –c mode.<br />

–n Does not split characters. If the low byte in a selected range is not the first<br />

byte of a character, cut extends the range downward to include the entire<br />

character; if the high byte in a selected range is not the last byte of a<br />

character, cut limits the range to include only the last entire character<br />

before the high byte selected. If –n is selected, cut does not list ranges that<br />

do not encompass an entire character, and these ranges do not cause an<br />

error.<br />

–s Does not display lines that do not contain a field separator character.<br />

Normally, cut displays lines that do not contain a field separator character<br />

in their entirety.<br />

cd /bin<br />

ls –al | cut –c 42–48,54–66<br />

Related Information<br />

paste, uname<br />

prints a directory listing containing file creation dates and filenames of files in the<br />

working directory.<br />

cut 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 due to any of the following:<br />

v Cannot open the input file<br />

v Out of memory<br />

2 Failure due to any of the following:<br />

v An incorrect command-line argument<br />

v You did not specify any of –b, –c, or –f<br />

v You omitted the list argument<br />

v Badly formed list argument<br />

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

cut<br />

Chapter 2. Shell command descriptions 179

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

Saved successfully!

Ooh no, something went wrong!