EX(1) UNIX Programmer's Manual EX(1) NAME ex, edit - text editor SYNOPSIS ex [ - ] [ -v ] [ -t tag ] [ -r ] [ +_c_o_m_m_a_n_d ] [ -l ] name ... edit [ ex options ] DESCRIPTION _E_x is the root of a family of editors: _e_d_i_t, _e_x and _v_i. _E_x is a superset of _e_d, with the most notable extension being a display editing facility. Display based editing is the focus of _v_i. If you have not used _e_d, or are a casual user, you will find that the editor _e_d_i_t is convenient for you. It avoids some of the complexities of _e_x used mostly by systems programmers and persons very familiar with _e_d. If you have a CRT terminal, you may wish to use a display based editor; in this case see _v_i(1), which is a command which focuses on the display editing portion of _e_x. DOCUMENTATION The document _E_d_i_t: _A _t_u_t_o_r_i_a_l (USD:14) provides a comprehen- sive introduction to _e_d_i_t assuming no previous knowledge of computers or the UNIX system. The _E_x _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l - _V_e_r_s_i_o_n _3._7 (USD:16) is a comprehensive and complete manual for the command mode features of _e_x, but you cannot learn to use the editor by reading it. For an introduction to more advanced forms of editing using the command mode of _e_x see the editing docu- ments written by Brian Kernighan for the editor _e_d; the material in the introductory and advanced documents works also with _e_x. _A_n _I_n_t_r_o_d_u_c_t_i_o_n _t_o _D_i_s_p_l_a_y _E_d_i_t_i_n_g _w_i_t_h _V_i (USD:15) intro- duces the display editor _v_i and provides reference material on _v_i. In addition, the _V_i _Q_u_i_c_k _R_e_f_e_r_e_n_c_e card summarizes the commands of _v_i in a useful, functional way, and is use- ful with the _I_n_t_r_o_d_u_c_t_i_o_n. FILES /usr/share/misc/exstrings error messages /usr/libexec/exrecover recover command /usr/sbin/expreserve preserve command /etc/termcap describes capabilities of terminals ~/.exrc editor startup file /tmp/Ex_n_n_n_n_n editor temporary /tmp/Rx_n_n_n_n_n named buffer temporary /usr/preserve preservation directory Printed 11/26/99 October 21, 1996 1 EX(1) UNIX Programmer's Manual EX(1) SEE ALSO awk(1), ed(1), grep(1), sed(1), grep(1), vi(1), termcap(5), environ(7) AUTHOR Originally written by William Joy Mark Horton has maintained the editor since version 2.7, adding macros, support for many unusual terminals, and other features such as word abbreviation mode. BUGS The _u_n_d_o command causes all marks to be lost on lines changed and then restored if the marked lines were changed. _U_n_d_o never clears the buffer modified condition. The _z command prints a number of logical rather than physi- cal 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. Printed 11/26/99 October 21, 1996 2