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

arguments for the ab command, it displays the abbreviations that are<br />

already defined. Abbreviated names cannot contain # or any other form of<br />

punctuation.<br />

[.] a[ppend][!]<br />

Enters ex INSERT mode. Text is read and placed after the specified line.<br />

An input line consisting of one period (.) leaves INSERT mode. If you<br />

specify an address of zero, text is inserted before the first line of the file.<br />

The current line indicator points to the last line typed.<br />

If an exclamation mark (!) is specified, the autoindent option is toggled<br />

during input. This command cannot be invoked from vi mode.<br />

ar[gs] Displays the current list of files being edited. The current file is shown<br />

enclosed by square brackets.<br />

cd[!] path<br />

Changes the current directory to path. If you omit path, cd sets the current<br />

working directory to the directory identified by the HOME variable. If path is<br />

a relative pathname, cd searches for it using the directories specified in the<br />

CDPATH variable. If path is –, then cd changes to the previous working<br />

directory. If you modified the buffer since the last write, vi displays a<br />

warning message. You can override this behavior by including the<br />

exclamation mark (!).<br />

[.,.] c[hange][!] [count]<br />

Deletes the line range given and then enters INSERT mode. If an<br />

exclamation mark (!) is specified, autoindent is toggled during input. You<br />

cannot invoke this command from vi mode.<br />

chd[ir][!] [path]<br />

Same as cd.<br />

[.,.] co[py] addr [flags]<br />

Copies the line range given after addr. If addr is zero, the lines are inserted<br />

before the first line of the file. The current line indicator points to the last<br />

line of the inserted copied text.<br />

[.,.] d[elete] [buffer] [count] [flags]<br />

Deletes the specified line range. After the line range is deleted, the current<br />

line indicator points to the line after the deleted range. A buffer can be<br />

specified as a letter a–z. If so, deleted lines are saved in the buffer with that<br />

name. If an uppercase letter is specified for buffer, the lines are appended<br />

to the buffer of the corresponding lowercase name. If no buffer name is<br />

given, deleted lines go to the unnamed buffer.<br />

e[dit] [!] [+line] [file]<br />

Begins a new editing session on a new file; the new file replaces the old file<br />

on the screen. This command is usually invalid if you have modified the<br />

contents of the current file without writing it back to the file. Specifying an<br />

exclamation mark (!) goes on to start a new session even you have not<br />

saved the changes of the current session.<br />

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

You can specify line as either a line number or as a string of the form<br />

/regexp or ?regexp where regexp is a regular expression. When line is a<br />

line number, the current line indicator is set to the specified position. When<br />

it has the form /regexp, vi searches forward through the file for the first<br />

occurrence of regexp and sets the current line indicator to that line. ?regexp<br />

is similar to /regexp except that vi searches through the file backwards. If<br />

you omit line and do not specify a file, the value of the current line indicator<br />

does not change. Otherwise, if a file is specified, the current line indicator is

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

Saved successfully!

Ooh no, something went wrong!