BSD 4_3_Tahoe development
[unix-history] / usr / man / cat1 / ex.0
EX(1) UNIX Programmer's Manual EX(1)
N\bNA\bAM\bME\bE
ex, edit - text editor
S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
e\bex\bx [ -\b- ] [ -\b-v\bv ] [ -\b-t\bt tag ] [ -\b-r\br ] [ +\b+_\bc_\bo_\bm_\bm_\ba_\bn_\bd ] [ -\b-l\bl ] name
...
e\bed\bdi\bit\bt [ ex options ]
D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
_\bE_\bx is the root of a family of editors: _\be_\bd_\bi_\bt, _\be_\bx and _\bv_\bi. _\bE_\bx
is a superset of _\be_\bd, with the most notable extension being a
display editing facility. Display based editing is the
focus of _\bv_\bi.
If you have not used _\be_\bd, or are a casual user, you will find
that the editor _\be_\bd_\bi_\bt is convenient for you. It avoids some
of the complexities of _\be_\bx used mostly by systems programmers
and persons very familiar with _\be_\bd.
If you have a CRT terminal, you may wish to use a display
based editor; in this case see _\bv_\bi(1), which is a command
which focuses on the display editing portion of _\be_\bx.
D\bDO\bOC\bCU\bUM\bME\bEN\bNT\bTA\bAT\bTI\bIO\bON\bN
The document _\bE_\bd_\bi_\bt: _\bA _\bt_\bu_\bt_\bo_\br_\bi_\ba_\bl (USD:14) provides a comprehen-
sive introduction to _\be_\bd_\bi_\bt assuming no previous knowledge of
computers or the UNIX system.
The _\bE_\bx _\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be _\bM_\ba_\bn_\bu_\ba_\bl - _\bV_\be_\br_\bs_\bi_\bo_\bn _\b3._\b7 (USD:16) is a
comprehensive and complete manual for the command mode
features of _\be_\bx, 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 _\be_\bx see the editing docu-
ments written by Brian Kernighan for the editor _\be_\bd; the
material in the introductory and advanced documents works
also with _\be_\bx.
_\bA_\bn _\bI_\bn_\bt_\br_\bo_\bd_\bu_\bc_\bt_\bi_\bo_\bn _\bt_\bo _\bD_\bi_\bs_\bp_\bl_\ba_\by _\bE_\bd_\bi_\bt_\bi_\bn_\bg _\bw_\bi_\bt_\bh _\bV_\bi (USD:15) intro-
duces the display editor _\bv_\bi and provides reference material
on _\bv_\bi. In addition, the _\bV_\bi _\bQ_\bu_\bi_\bc_\bk _\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be card summarizes
the commands of _\bv_\bi in a useful, functional way, and is use-
ful with the _\bI_\bn_\bt_\br_\bo_\bd_\bu_\bc_\bt_\bi_\bo_\bn.
F\bFI\bIL\bLE\bES\bS
/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_\bn_\bn_\bn_\bn_\bn editor temporary
/tmp/Rx_\bn_\bn_\bn_\bn_\bn named buffer temporary
/usr/preserve preservation directory
Printed 7/9/88 June 5, 1986 1
EX(1) UNIX Programmer's Manual EX(1)
S\bSE\bEE\bE A\bAL\bLS\bSO\bO
awk(1), ed(1), grep(1), sed(1), grep(1), vi(1), termcap(5),
environ(7)
A\bAU\bUT\bTH\bHO\bOR\bR
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.
B\bBU\bUG\bGS\bS
The _\bu_\bn_\bd_\bo command causes all marks to be lost on lines
changed and then restored if the marked lines were changed.
_\bU_\bn_\bd_\bo never clears the buffer modified condition.
The _\bz 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 `\b`-\b-'\b' 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 7/9/88 June 5, 1986 2