Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

EX(1)

NAME

ex, edit − text editor

USAGE

ex [ − ] [ −v ] [ −t tag ] [ −r file ] [ −R ] [ +command ] [ −l ] file ... 
edit [ options ]

DESCRIPTION

Ex is the root of a family of editors, which also includes edit (1) and vi (1).  Ex is a superset of ed (1), 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 edit is convenient for you.  It avoids some of the complexities of ex used mostly by systems programmers and persons very familiar with ed.  Edit uses the same options as ex. 

Full details concerning the use of these two text editors are explained in the DOMAIN/IX Text Processing Guide. 

OPTIONS

− Suppress all interactive-user feedback.  This is useful in processing editor scripts. 

−v Invoke vi (1). 

−t tag Edit the file containing the tag and position the editor at its definition. 

−r file Recover file after an editor or system crash.  If you do not specify file, ex prints a list of all saved files. 

−R Set mode to readonly to prevent accidental overwriting of the file. 

+command Begin editing by executing the specified editor search or positioning command.

−l Set lisp mode to indent appropriately for LISP code.  Modify the parentheses, braces, and left and right double brackets commands, i.e., (), {}, [[, and ]], in vi (1) to have meaning for LISP. 

CAUTIONS

The undo command causes all marks to be lost on lines changed and then restored if the marked lines were changed.  It also 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 do not print a name if the dash (−) option is used on the command line. 

There is no easy way to do a single scan ignoring case. 

No warning messages appear when 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?.?recover
recover command

/usr/lib/ex?.?preserve
preserve command

/usr/lib/*/* capabilities of terminals

$HOME/.exrc editor startup file

editor start-up file

/tmp/Exnnnnn editor temporary

/tmp/Rxnnnnn named buffer temporary

/usr/preserve preservation directory

RELATED INFORMATION

awk (1), ed (1), grep (1), sed (1), vi (1). 

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026