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.

[.] pu[t] [buffer]<br />

Pastes deleted or yanked lines back into the file after the given line. If no<br />

buffer name is given, the most recently changed buffer is used.<br />

Because the edit command does not destroy buffers, you can send that<br />

command in conjunction with put and yank to move text between files.<br />

q[uit][!]<br />

Exit from vi or ex. If the current file has been modified, an exclamation<br />

mark (!) must be used or you cannot exit until you write the file.<br />

[.] r[ead] [!][file]<br />

Reads the contents of file and inserts them into the current file after the<br />

given line number. If the line number is 0, the contents of the given file are<br />

inserted at the beginning of the file being edited. If the current filename is<br />

not set, a file must be given, and it becomes the current file name;<br />

otherwise, if a file is given, it becomes the alternate file name. If the file<br />

begins with an exclamation mark (!), then it is taken as a system<br />

command. Pipes are used to read in the output from the command after the<br />

given line number.<br />

rec[over] file<br />

Attempts to recover file if it was saved as the result of a preserve<br />

command or a system or editor crash. If you do not specify file, this<br />

command displays a list of all recoverable files.<br />

rew[ind][!]<br />

Rewinds the file argument list back to the beginning and starts editing the<br />

first file in the list. If the current file has been modified, an exclamation mark<br />

(!) must be specified; otherwise, you cannot leave the current file until you<br />

have written it out. If autowrite is set, the current file is written out<br />

automatically if it needs to be.<br />

se[t] [parameter-list]<br />

Assigns or displays the values of option variables, If you do not specify a<br />

parameter list, set displays all the variables with values that have changed<br />

since the editing session started. If the parameter all is specified, ex<br />

displays all variables and their values. You can use the parameter list to set<br />

or display each of many variable values. Each argument in the list is a<br />

variable name; if it is a Boolean variable, the value is set on or off<br />

depending on whether the name is prefixed by no. Non-Boolean variables<br />

alone in an argument are a request to display their values. A Boolean<br />

variable’s value can be displayed by following the name by a question mark<br />

(?). You can set numeric or string variables with:<br />

name=value<br />

In a string variable, spaces must be preceded by a backslash. For example:<br />

set readonly? noautowrite shell=/bin/sh<br />

shows the value of the readonly flag, sets noautowrite, and sets the shell<br />

to /bin/sh.<br />

set report report=5<br />

shows the value of the report variable, and then set the value to 5. See<br />

“Set Option Variables” on page 779 for more details.<br />

sh[ell] Invokes a child shell. The environment variable SHELL is used to find the<br />

name of the shell to run.<br />

vi<br />

Chapter 2. Shell command descriptions 775

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

Saved successfully!

Ooh no, something went wrong!