[0m


EX(1)		    UNIX Programmer's Manual		    EX(1)



[1mNAME
     [0mex, edit - text editor

[1mSYNOPSIS
     ex [0m[ [1m- [0m] [ [1m-v [0m] [ [1m-t [0mtag ] [ [1m-r [0m] [ [1m+[0m_c_o_m_m_a_n_d ] [ [1m-l [0m] name
     ...
     [1medit [0m[ ex options ]

[1mDESCRIPTION
     [0m_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.

[1mOPTIONS
	       [0m(useful for processing [1mex [0mscripts in shell files).

     [1m-l        [0mSet up for editing _L_I_S_P programs.

     [1m-r        [0mRecover the indicated _f_i_l_e_n_a_m_es after a system
	       crash.

     [1m-R        [0mRead only.  Do not overwrite the original file.

     [1m-v        [0mStart up in display editing state using [1mvi[0m.  You
	       can achieve the same effect by simply typing the
	       [1mvi [0mcommand itself.

     [1m-t [0m_t_a_g    Edit the file containing the tag _t_a_g.  A tags
	       database must first be created using the [1mctags[0m(1)
	       command.

     [1m-w[0m_n       Set the default window (number of lines on your
	       terminal) to _n

     [1m+[0m_c_o_m_m_a_n_d  Start the editing session by executing _c_o_m_m_a_n_d.

[1mDOCUMENTATION
     [0mThe 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.





Printed 22/5/92     Revision 1.3 of 02/07/90			1






EX(1)		    UNIX Programmer's Manual		    EX(1)



     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.

[1mFILES
     [0m/usr/lib/ex?.?strings	   error messages
     /usr/lib/ex?.?recover	   recover command
     /usr/lib/ex?.?preserve	   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
     /var/preserve	      preservation directory

[1mSEE ALSO
     [0mawk(1), ed(1), grep(1), sed(1), grep(1), vi(1), termcap(5),
     environ(7)

[1mAUTHOR
     [0mOriginally 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.

[1mBUGS
     [0mThe _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 [1m`-' [0moption 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.



Printed 22/5/92     Revision 1.3 of 02/07/90			2






EX(1)		    UNIX Programmer's Manual		    EX(1)



     Null characters are discarded in input files, and cannot
     appear in resultant files.





















































Printed 22/5/92     Revision 1.3 of 02/07/90			3



[0m