ex.1 (2010 09)

e
ex(1) ex(1)
recover rec[over][!] file
Recover file from the save area, after an accidental hangup or a system crash. If the
current work area has been modified since the last write, a warning is printed and the
command is aborted. This action can be overridden by appending the character
! to
the command (
rec! file).
rewind rew[ind][!]
The argument list is rewound, and the first file in the list is edited. This shall be
equivalent to a
next command with the current argument list as its operands. If the
current buffer has been modified since the last write, a warning shall be written and
the command shall be aborted. Any warnings can be overridden by appending a
!.
The current indicator line shall be affected by the editor options,
autowrite and
writeany.
set se[t][all]
se[t][no]boolean-option
?
se[t] value-option [?]
se[t] boolean-option
se[t] noboolean-option
se[t] value-option =value
Set and display the values of the editor options (see Editor Options below).
With no arguments, the command prints those editor options whose values have been
changed from the default settings. If
all is specified, it prints all current option
values.
The second and third forms display the current value of the specified option. The
? is
necessary only for Boolean options.
The fourth form turns a Boolean option on. The fifth form turns a Boolean option off.
The sixth form assigns values to string and numeric options. Spaces and tabs in
strings must be escaped with a leading backslash (
\).
The last five forms can be combined; interpretation is left-to-right.
shell sh[ell]
Execute the command interpreter specified by the
shell editor option (see Editor
Options below). Editing is resumed when you exit from the command interpreter.
source so[urce] file
Read and execute commands from the specified file.
so commands can be nested. The
maximum supported nesting depths is implementation defined, but shall be at least
one.
substitute range s[ubstitute] /re/repl / options count flags
range s options count flags
range & options count flags
range sr options count flags
range ˜ options count flags
range s\?repl
range s\&repl
On each specified line, the first instance of the pattern re is replaced by the string
repl . (See Regular Expressions and Replacement Strings above.) Any character other
than a letter or a digit can be used to delimit the pattern instead of the
/.
If you include the
g (global) option, all instances of the pattern in the line are substi-
tuted.
If you include the
c (confirm) option, you are queried about whether to perform each
individual substitution, as follows: Before each substitution the line is displayed with
the pattern to be replaced marked underneath with carets (ˆ). Type y to cause the
substitution to be performed; any other input to abort it. The last line substituted
becomes the current line.
HP-UX 11i Version 3: September 2010 9 Hewlett-Packard Company 9