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.

unm[ap][!] lhs<br />

Deletes the lhs map. If the flag ! is used, this applies to the insert mode<br />

maps; otherwise it applies to the command mode maps.<br />

[1,$] v /pat/ commands<br />

This is a synonym for the global command with the ! flag; that is, a global<br />

for all nonmatching lines. You can use any nonalphabetic character to<br />

delimit pat instead of the slash (/).<br />

ve[rsion]<br />

Displays the current version information for vi or ex.<br />

[.] vi[sual] [type] [count] [flags]<br />

Enters vi mode. If no type is specified, the current line is at the top of the<br />

screen. If type is caret (^), the bottom line of the screen is one window<br />

before the current line. If type is a minus sign, (–), the current line is at the<br />

bottom of the screen. If type is a period (.), the current line is in the middle<br />

of the screen.<br />

You can use the undo command to undo all the changes that occurred<br />

during the vi command.<br />

[1,$] w[rite][!] [>>] [file]<br />

Writes the given range of lines to file. If two right angle brackets (>>) are<br />

included, the lines are appended to the current contents of the file. If the<br />

current file name is not set, a file must be given. This becomes the current<br />

file name. Otherwise, file becomes the alternate filename if it is specified. If<br />

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

command. vi writes the given range to the command through a pipe.<br />

If a file is given, it must not already exist. The variable readonly must not<br />

be set. If a file is not given, the file must be edited; that is, it must be the<br />

same file as that read in. All these conditions can be overridden by using<br />

the flag !.<br />

[1,$] wn[!] [>>] [file]<br />

Similar to write, except that it begins editing the next file in the file list<br />

immediately afterwards (if the write is successful).<br />

[1,$] wq[!] [>>] [file]<br />

Similar to write, except that it exits the editor immediately afterwards (if the<br />

write is successful).<br />

x[it] If you have modified the current file since the last write, performs a write<br />

command using the specified range and file name and then terminates.<br />

[.,.] y[ank] [buffer] [count]<br />

Copies the given line range to the specified buffer (a letter from a through<br />

z). If a buffer is not specified, the unnamed buffer is used. Buffers are not<br />

destroyed by an edit command, so yank and put can be used to move text<br />

between files.<br />

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

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

[.+1]z [type] [count] [flags]<br />

Displays count lines. If no count is specified, ex uses the current value of<br />

the scroll variable. The lines are displayed with the given line located<br />

according to the type. If type is a plus sign (+), the editor displays the given<br />

line and a screenful after that. If type is a period (.), the editor displays<br />

screenful with the given line in the middle. If type is a minus sign (-), the<br />

editor displays a screenful with the given line at the end. If type is a caret<br />

vi<br />

Chapter 2. Shell command descriptions 777

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

Saved successfully!

Ooh no, something went wrong!