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 />

sed<br />

_<strong>UNIX</strong>03=YES is set, one or more ’!’ characters are allowed, and it is not allowed to<br />

follow a ’!’ character with s. When the variable _<strong>UNIX</strong>03 is unset or is not<br />

set to YES, only one ’!’ character is allowed, and it is not allowed to follow a ’!’<br />

character with s.<br />

The following sed subcommand summary shows the subcommands with the<br />

maximum number of legitimate addresses. A subcommand can be given fewer than<br />

the number of addresses specified, but not more.<br />

aa\ Appends subsequent text lines from the script to the standard output. sed<br />

writes the text after completing all other script operations for that line and<br />

before reading the next record. Text lines are ended by the first line that<br />

does not end with a backslash (\). sed does not treat the \ characters on<br />

the end of lines as part of the text.<br />

a,bb [label]<br />

Branches to :label. If you omit label, sed branches to the end of the script.<br />

a,bc\ Changes the addressed lines by deleting the contents of the pattern buffer<br />

(input line) and sending subsequent text (similar to the a command) to the<br />

standard output. When you specify two addresses, sed delays text output<br />

until the final line in the range of addresses; otherwise, the behavior would<br />

surprise many users. The rest of the script is skipped for each addressed<br />

line except the last.<br />

a,bd Deletes the contents of the pattern buffer (input line) and restarts the script<br />

with the next input line.<br />

a,bD Deletes the pattern buffer only up to and including the first newline. Then it<br />

restarts the script from the beginning and applies it to the text left in the<br />

pattern buffer.<br />

a,bg Grabs a copy of the text in the hold buffer and places it in the pattern<br />

buffer, overwriting the original contents.<br />

a,bG Grabs a copy of the text in the hold buffer and appends it to the end of the<br />

pattern buffer after appending a newline.<br />

a,bh Holds a copy of the text in the pattern buffer by placing it in the hold buffer,<br />

overwriting its original contents.<br />

a,bH Holds a copy of the text in the pattern buffer by appending it to the end of<br />

the hold buffer after appending a newline.<br />

ai\ Inserts text. This subcommand is similar to the a subcommand, except that<br />

its text is output immediately.<br />

a,bl Lists the pattern buffer (input line) to the standard output so that<br />

nonprintable characters are visible. The end-of-line is represented by $, and<br />

the characters \\, \a, \b, \f, \r, \t, and \v are printed as escape sequences.<br />

Each byte of a nonprintable doublebyte character appears as an escape<br />

sequence or as a 3-digit octal number. This subcommand is analogous to<br />

the l subcommand in ed.<br />

sed folds long lines to suit the output device, indicating the point of folding<br />

with a backslash (\).<br />

a,bn Prints the pattern space on standard output if the default printing of the<br />

pattern space is not suppressed (because of the -n option). The next line of<br />

input is then read, and the processing of the line continues from the<br />

location of the n command in the script.<br />

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