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.

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

sed<br />

Example<br />

If the variable _<strong>UNIX</strong>03=YES is set and a backslash followed by an ’n’<br />

appear in set1 or set2, the two characters are handled as a single newline<br />

character. If the variable _<strong>UNIX</strong>03 is unset or is not set to YES, the two<br />

characters are handled as a single character ’n’.<br />

If the delimiter is not ’n’, within set1 and set2, the delimiter itself can be<br />

used as a literal character if it is preceded by a backslash. If a backslash<br />

character is immediately followed by a backslash character in set1 or set2,<br />

the two backslash characters are counted as a single literal backslash<br />

character.<br />

a,b{ Groups all commands until the next matching } subcommand, so that sed<br />

runs the entire group only if the { subcommand is selected by its<br />

address(es).<br />

:label Designates a label, which can be the destination of a bor t subcommand.<br />

# Treats the script line as a comment unless it is the first line in the script.<br />

Including the first line in a script as #n is equivalent to specifying –n on the<br />

command line. An empty script line is also treated as a comment.<br />

a= Writes the decimal value of the current line number to the standard output.<br />

This filter switches desserts in a menu:<br />

sed ’s/cake\(ic\)*/cookies/g’<br />

Environment Variable<br />

sed uses the following environment variables:<br />

Localization<br />

Exit Values<br />

COLUMNS<br />

Contains the width of the screen in columns. If set, sed uses this value to<br />

fold long lines on output. Otherwise, sed uses a default screen width of 80.<br />

_<strong>UNIX</strong>03<br />

For more information about the effect of _<strong>UNIX</strong>03 on this command, see<br />

Appendix N, “<strong>UNIX</strong> shell commands changed for <strong>UNIX</strong>03,” on page 943.<br />

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

v LANG<br />

v LC_ALL<br />

v LC_COLLATE<br />

v LC_CTYPE<br />

v LC_MESSAGES<br />

v LC_SYNTAX<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 Missing script<br />

v Too many script arguments<br />

v Too few arguments<br />

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