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

so[urce] file<br />

Runs editor commands from file. A file being executed with source can<br />

contain source commands of its own.<br />

st[op] Suspends the editor session and returns to system level. For more<br />

information, see the description of the vi command Ctrl-Z.<br />

[.,.] s[ubstitute] [/pat/repl/] [options] [count] [flags]<br />

Searches each line in the line range for the regular expression pat and<br />

replaces matching strings with repl.<br />

Normally, ex only replaces the first matching string in each line. If options<br />

contains g [global], all matching strings are changed.<br />

If options contains c [confirm], ex first prints the line with caret (^)<br />

characters marking the pat matching location; you can then type y if you<br />

want ex to go ahead with the substitution. pat cannot match over a line<br />

boundary; however in ex mode, repl can contain a newline, escaped by a<br />

preceding backslash (\). See Appendix C, “Regular Expressions (regexp),”<br />

on page 885 for full information on both pat and repl. If there is no pat or<br />

repl, ex uses the most recently specified regular expression or replacement<br />

string. You can use any nonalphabetic character in place of the slash (/) to<br />

delimit pat and repl.<br />

su[spend]<br />

This is synonymous with the stop command.<br />

[.,.] t addr [flags]<br />

This is synonymous with the copy command.<br />

ta[g][!] tagname<br />

Looks up tagname in the files listed in the variable tags. If the tag name is<br />

found in a tags file, that file also contains the name of the file that contains<br />

the tag and a regular expression required within that file to locate that tag. If<br />

the given file is different from the one you are currently editing, ex normally<br />

begins editing the new file. However, if you have modified the current file<br />

since the last time it was written out, ex does not start editing a new file<br />

unless the tag command contains an exclamation mark (!). If autowrite is<br />

on, the current file is automatically written out and the new file read in.<br />

When the new file is read in, the regular expression from the tags file is<br />

invoked with the magic variable off.<br />

Tag names are typically used to locate C function definitions in C source<br />

files. The first step is to create a tags file using the ctags command. After<br />

you do this, you can use the ex tag command to look up a particular<br />

function definition and go directly to that definition in the file that contains it.<br />

All characters in tag names are significant unless the variable taglength is<br />

nonzero; in this case, only the given number of characters are used in the<br />

comparison.<br />

una[bbreviate] lhs<br />

The abbreviation lhs previously created by abbreviate is deleted.<br />

u[ndo]<br />

776 z/<strong>OS</strong> <strong>V1R9.0</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> <strong>Command</strong> Reference<br />

Undoes the last change or set of changes that modified the buffer. Globals<br />

and vi macros are both considered as single changes that can be undone.<br />

A second undo undoes the undo restoring the previous state. The edit<br />

command cannot be undone, because it cleans up the temporary file which<br />

is used to maintain undo information. You cannot undo operating system<br />

commands and commands that write output to the file system.

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

Saved successfully!

Ooh no, something went wrong!