HP-UX Reference (11i v1 05/09) - 1 User Commands A-M (vol 1)

e
ex(1) ex(1)
The sequence \u (\l) causes the immediately following character in the replacement to be converted to
uppercase (lowercase), if the character is a letter. The sequence
\U (\L) turns case conversion on, until the
sequence
\E or \e is encountered, or the end of the replacement string is reached.
Command Names and Abbreviations
The following table summarizes the line-mode commands. The commands whose names are enclosed in
parentheses are available only in their abbreviated forms.
Command Abbr. Command Abbr. Command Abbr.
abbreviate ab next n tag ta
append a number nu # unabbreviate una
args ar open o undo u
change c pop unmap unm
chdir chd cd preserve pre version ve
copy co t print p visual vi
crypt cr X put pu write w wq
delete d quit q xit x
edit e ex read r yank ya
file f recover rec
global g v rewind rew (execute buffer) *@
insert i set se
(line number) =
join j shell sh
(left shift) <
list l source so
(right shift) >
map stop st ˆZ
(scroll) ^D
mark ma k substitute s sr & ˜
(shell escape) !
move m suspend su ˆZ
(window) z
Command Descriptions
In the following command descriptions, some arguments appear frequently. They are described below.
line A single line address, in any of the forms described in Addressing above. The default is the
current line.
range A pair of line addresses separated by a comma or semicolon, as described in Addressing
above. The default is the current line (.,.).
count A positive integer specifying the number of lines to be affected by the command. The
default is 1 or the number of lines in range.
When count is specified, range is ineffective. Instead, only a line number should be
specified to indicate the first line affected by the command. (If a range is given, the last
line of the range is interpreted as the starting line for the command.)
flags One or more of the characters #, p, and l. The corresponding command to print the line is
executed after the command completes. Any number of + or - characters can also be given
with these flags. The default is no flags.
These modifiers are all optional.
When only a line or a range is specified (with a null command), the implied command is print. If a null
line is entered, the next line is printed (equivalent to .+1p)
buffer XPG4 Feature. One of a number of named areas for saving text. The named buffers are
specified by the lowercase letters of the POSIX locale. Specifying buffer shall cause the
area of the text affected by the command to be stored into the buffer as it was before the
command took effect. This argument is also used on the put command and the visual
mode "put" commands (p and P), to specify the buffer that shall provide the text to insert.
If the buffer name is specified in uppercase, and the buffer is to be modified, the buffer shall
be appended to rather than being overwritten. If the buffer is not to be modified, the buffer
name can be specified in lowercase or uppercase with the same results. There shall be also
one unnamed buffer, which is the repository for all text deleteed or yanked when no buffer
is specified.
HP-UX 11i Version 1: September 2005 4 Hewlett-Packard Company Section 1253