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.

vi<br />

(^), the editor displays the screenful before that. If type is an equal sign (=),<br />

the current line is centered on the screen with a line of hyphens printed<br />

immediately before and after it. The current line indicator points to the last<br />

line displayed.<br />

[.,.] ), each one causes another shift. The<br />

current line indicator points to the last line displayed. If a count is specified,<br />

that many lines are shifted.<br />

[range] ! command<br />

Submits command to be run by the command interpreter named by the<br />

SHELL variable. If range is given, the command is invoked with the<br />

contents of that line range as input. The output from the command then<br />

replaces that line range. Thus:<br />

1,$!sort<br />

sorts the entire contents of the file.<br />

Substitutions are made in command before it is run. Any occurrences of an<br />

exclamation mark (!) are replaced by the previous command line, while<br />

occurrences of percentage (%) and hash mark (#) characters are replaced<br />

with the pathnames of the current and alternate files, respectively. If any<br />

such substitutions actually take place, the new command line is displayed<br />

before it is executed. (See the read and write sections in “ex <strong>Command</strong><br />

Mode” on page 769 for more information about the current and alternative<br />

files.)<br />

If the file has been modified and the variable autowrite is on, the file is<br />

written before calling the command. If autowrite is off, a warning message<br />

is given.<br />

[$] = Displays the given line number. The default line number is the last line of<br />

the file. The current line indicator is not changed.<br />

“ a line of text<br />

This is a comment.<br />

[.,.] & [options] [count] [flags]<br />

Repeats the last substitute command. If any options, count, or flags are<br />

specified, they replace the corresponding items in the previous substitute<br />

command.<br />

[.,.] ~ [options] [count] [flags]<br />

Repeats the last substitute command. However, the regular expression<br />

that is used is the last regular expression; that is, if there has been a<br />

search, the search’s regular expression is used. The simple substitute with<br />

no arguments, or the & command, uses the regular expression from the<br />

previous substitute. substitute with an empty regular expression uses the<br />

last regular expression, like ~. If any options, count, or flags are specified,<br />

they replace the corresponding items in the previous substitute command.<br />

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