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: edit, 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 a CRT terminal, and you wish to use a display based editor, see vi, which focuses on the display editing portion of ex.
OPTIONS
− Suppresses all interactive-user feedback. This option is useful in processing editor scripts in command files.
−v Equivalent to using vi rather than ex.
−t Equivalent to an initial tag command, that is, editing the file containing the tag and positioning the editor at its definition.
−r Retrieves the last saved version of the named file after an editor or system crash. If no file is specified, it displays a list of saved files.
−R Sets the readonly option at the start.
+command 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.
−l 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
Commands