ex.1 (2010 09)
e
ex(1) ex(1)
NAME
ex, edit - extended line-oriented text editor
SYNOPSIS
ex [-][-l][
-r][-R][-t tag][-v][-wsize][
-x][-C][+command][file ...]
UNIX Standard Synopsis
ex [-rR][-s
-v][-c command][-t tag ][-w size ][file ...]
Obsolescent Options
ex [-rR][- -v
][+command][-t tag ][-w size][file ...]
edit [-][-l][
-r][-R][-t tag][-v][-wsize][
-x][-C][+command][file ...]
Remarks
The program names
ex, edit, vi
, view, and vedit are separate personalities of the same program.
This manual entry describes the behavior of the
ex/edit personality. On many HP-UX and other simi-
lar systems,
e is a synonym for
ex.
DESCRIPTION
The
ex program is the line-oriented personality of a text editor that also supports screen-oriented editing
(see vi(1)).
(UNIX Standard only, see standards (5)) Certain block-mode terminals do not have all the capabilities
necessary to support the complete
ex definition, such as the full-screen editing commands (
visual
mode or open mode). When these commands cannot be supported on such terminals, this condition shall
neither produce an error message such as "not an editor command" nor report a syntax error.
The
edit program is identical to ex, except that some editor option defaults are altered to make the edi-
tor somewhat friendlier for beginning and casual users (see Editor Options below).
Options and Arguments
ex recognizes the following command-line options and arguments:
- (Obsolescent) Suppress all interactive-user feedback. This is useful when editor com-
mands are taken from scripts.
-s (UNIX Standard only, see standards (5))
Suppress all interactive-user feedback. This is useful when editor commands are taken
from scripts.
Ignore the value of the
TERM and any implementation terminal type and assume the ter-
minal is a type incapable of supporting visual mode.
Suppress the use of the
EXINIT environment variable and the reading of the .exrc
file.
-l Set the lisp editor option (see Editor Options below).
-r Recover the specified files after an editor or system crash. If no file is specified, a list of
all saved files is printed. You must be the owner of the saved file in order to recover it
(superuser cannot recover files owned by other users).
-R Set the readonly editor option to prevent overwriting a file inadvertently (see Editor
Options below).
-t tag (UNIX Standard only, see standards (5)) Edit the file containing the specified tag and
proceed as if the first command were :tag tag . The tags represented by the -t tag and
the ta command is optional. It shall be provided on any system that also provides a
confirming implementation of ctags, Otherwise, the use of the -t produces undefined
results.
Execute the
tag tag command to load and position a predefined file. See the tag com-
mand in Command Descriptions and the tags editor option in Editor Options below.
-v Invoke visual mode (vi).
-w size Set the value of the window editor option to size (see Editor Options below). If size is
omitted, it defaults to 3.
HP-UX 11i Version 3: September 2010 − 1 − Hewlett-Packard Company 1