ex(1)
NAME
ex, edit − text editor
SYNTAX
ex [−] [−v] [−t tag] [−r] [+command] [−l] name...
edit [ ex options]
DESCRIPTION
The ex editor is the root of a family of editors: ex and vi. The ex editor is a superset of ed, with the most notable extension being a display editing facility. Display based editing is the focus of vi.
If you have not used ed, or are a casual user, you will find that the editor edit is convenient for you. It avoids some of the complexities of ex, used mostly by systems programmers and persons very familiar with ed.
If you have a CRT terminal, you may wish to use a display based editor; in this case see vi, which focuses on the display editing portion of ex.
OPTIONS
The − option suppresses all interactive-user feedback. This option is useful in processing editor scripts in command files.
The −v option is equivalent to using vi rather than ex.
The −t option is equivalent to an initial tag command, that is, editing the file containing the tag and positioning the editor at its definition.
The −r option is used to recover after an editor or system crash. It recovers by retrieving the last saved version of the named file. If no file is specified, it displays a list of saved files.
The −R option sets the readonly option at the start.
The +command option indicates that the editor should begin by executing the specified command. If the command is omitted, it defaults to $, positioning the editor at the last line of the first file, initially. Other useful commands here are scanning patterns of the form +/pattern or line numbers.
The −l option sets up for LISP. That is, it sets the showmatch and lisp options.
RESTRICTIONS
The undo command causes all marks to be lost on lines changed and then restored if the marked lines were changed.
The undo command never clears the buffer modified condition.
The z command prints a number of logical rather than physical lines. More than a screen full of output may result if long lines are present.
File input/output errors don’t print a name if the command line ‘−’ option is used.
There is no easy way to do a single scan ignoring case.
The editor does not warn if text is placed in named buffers and not used before exiting the editor.
Null characters are discarded in input files, and cannot appear in resultant files.
FILES
/usr/lib/ex?.?recoverrecover command
/usr/lib/ex?.?preservepreserve command
/etc/termcapdescribes capabilities of terminals
~/.exrceditor startup file
/tmp/Exnnnnneditor temporary
/tmp/Rxnnnnnnamed buffer temporary
/usr/preservepreservation directory
SEE ALSO
awk(1), ed(1), grep(1), sed(1), vi(1), termcap(5), environ(7)
"Edit: A Tutorial" and the "Ex Reference Manual" ULTRIX-32 Supplementary Documents Vol. I: General User