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.

@ buffer<br />

Executes each line in buffer as an ex command. If you do not specify buffer<br />

or if you specify a buffer named @, the last buffer executed is used.<br />

Ctrl-D Displays the number of lines of text given by the scroll variable. The<br />

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

Special Characters in ex <strong>Command</strong>s<br />

When an ex command contains the percentage character (%), the character is<br />

replaced by the name of the current file. For example, if you are about to try out a<br />

macro and you are worried that the macro may damage the file, you could issue:<br />

!cp % /tmp<br />

to copy the current file to a safe holding place. As another example, a macro could<br />

use the percentage character (%) to refer to the current file.<br />

When an ex command contains the hash mark (#), the character is replaced by the<br />

name of the alternate file. The name of the alternate file can be set with the read<br />

command as described previously. Thus a command like:<br />

e #<br />

tells ex to edit the alternate file. Using an alternate file can be particularly<br />

convenient when you have two files that you want to edit simultaneously. The<br />

command just given lets you flip back and forth between the two files.<br />

Set Option Variables<br />

Options are set with the set command. For example:<br />

set autowrite<br />

sets the autowrite option. For options which are flags, i.e., are not numeric, the<br />

variables can be turned off by putting no in front of the name in the set command,<br />

as in:<br />

set noautowrite<br />

In the following list, variables that are off by default are preceded by no. The<br />

minimal abbreviation of each option is shown after the comma. Default values are<br />

shown after the equal sign (=).<br />

autoflush, af<br />

When this option is set, it holds the maximum number of seconds of data a<br />

user would lose if a system crash occurs. vi will flush memory out to its<br />

temporary files approximately this many seconds, unless no changes have<br />

been made to the current edit buffer, or the user is sitting idle. It allows you<br />

to eventually recover a more current representation of your edit buffer (after<br />

the exrecover daemon and vi —r is run) because it intermittently updates<br />

vi’s temporary files which are used by the exrecover daemon.<br />

Note the following:<br />

v The default is set to 120 seconds (2 minutes).<br />

v To turn off this option, set autoflush to 0.<br />

v This option has no effect on read-only files.<br />

v This option is different than the previous preserve option because it<br />

works with vi’s temporary files (whose location is specified by the<br />

environment variables: TMP_VI, TMPDIR or TMP) as opposed to<br />

recovered files found in /etc/recover/$LOGNAME.<br />

vi<br />

Chapter 2. Shell command descriptions 779

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

Saved successfully!

Ooh no, something went wrong!