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.

expand — Expand tabs to spaces<br />

Format<br />

Description<br />

Options<br />

Localization<br />

Exit Values<br />

Portability<br />

expand [–t tablist] [file ...]<br />

expand [–number] [–number,number ...] [file ...]<br />

expand reads text input from the files specified on the command line, converts tabs<br />

into spaces, and writes the result to the standard output (stdout). If you do not<br />

specify any files on the command line, expand reads from the standard input<br />

(stdin).<br />

expand preserves backspace characters. By default, tab stops are set every eight<br />

columns. A tab after the last tabstop is replaced by a space.<br />

The first syntax of expand supports the following option:<br />

–t tablist<br />

Sets tab stops at positions indicated by tablist. Numbers in tablist must be<br />

in ascending order (origin 0) and separated by commas or blanks; however,<br />

the list must be one argument so you need shell quoting if you are using<br />

blanks. The list can consist of a single number, in which case tabs are set<br />

every tablist positions apart.<br />

The second syntax of expand (which the P<strong>OS</strong>IX standard considers obsolete)<br />

supports the following options:<br />

–number<br />

Sets tab stops every number columns.<br />

–number,number ...<br />

Sets tab stops at each column number (origin 0).<br />

expand 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 Insufficient memory<br />

v Incorrect tab stop specification<br />

expand<br />

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

Chapter 2. Shell command descriptions 263

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

Saved successfully!

Ooh no, something went wrong!