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.

unexpand<br />

Options<br />

Localization<br />

Exit Values<br />

Portability<br />

Related Information<br />

expand, pr<br />

Backspace characters are preserved. By default, unexpand compresses only<br />

leading spaces into tabs; tab stops are set every eight spaces.<br />

unexpand supports the following options:<br />

–a Compresses spaces into tabs wherever the resulting output is shorter,<br />

regardless of where the spaces occur in the line.<br />

–t tablist<br />

Specifies tab stops. The numbers in tablist are delimited by blanks or<br />

commas. If tablist is a single number, then unexpand places tab stops<br />

every tablist positions. If tablist contains multiple numbers, unexpand<br />

places tab stops at those specific positions. Multiple numbers in tablist must<br />

be in ascending order. This option, like the –a option, compresses spaces<br />

to tabs at any appropriate point in the line. If you specify –t, unexpand<br />

ignores the presence or absence of –a.<br />

unexpand uses the following localization 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 an incorrect command-line argument, or an inability to open<br />

the input files<br />

P<strong>OS</strong>IX.2 User Portability Extension, X/Open Portability Guide, 4.2BSD.<br />

uniq — Report or filter out repeated lines in a file<br />

Format<br />

Description<br />

uniq [–c|–d|–u] [–f number1] [–s number2] [input_file [output_file]]<br />

uniq [–cdu] [–number] [+number] [input_file [output_file]]<br />

uniq manipulates lines that occur more than once in a file. The file must be sorted,<br />

since uniq only compares adjacent lines. When you invoke this command with no<br />

options, it writes only one copy of each line in input_file to output_file. If you do not<br />

specify input_file or you specify –, uniq reads the standard input.<br />

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