setgid to group "write" so that terminals need not be world writable
[unix-history] / usr / src / usr.bin / ex / ex.1
CommitLineData
3437507f
KM
1.\" Copyright (c) 1980 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
08fbacb7 5.\" @(#)ex.1 6.1 (Berkeley) %G%
3437507f 6.\"
08fbacb7 7.TH EX 1 ""
3437507f
KM
8.UC 4
9.SH NAME
10ex, edit \- text editor
11.SH SYNOPSIS
12.B ex
13[
14.B \-
15] [
16.B \-v
17] [
18.B \-t
19tag
20] [
21.B \-r
22] [
23\fB\+\fIcommand\fR
24] [
25.B \-l
26]
27name ...
28.br
29.B edit
30[
31ex options
32]
33.SH DESCRIPTION
34.I Ex
35is the root of a family of editors:
36.I edit,
37.I ex
38and
39.I vi.
40.I Ex
41is a superset of
42.I ed,
43with the most notable extension being a display editing facility.
44Display based editing is the focus of
45.I vi.
46.PP
47If you have not used
48.I ed,
49or are a casual user, you will find that the editor
50.I edit
51is convenient for you.
52It avoids some of the complexities of
53.I ex
54used mostly by systems programmers and persons very familiar with
55.I ed.
56.PP
57If you have a \s-2CRT\s0 terminal, you may wish to use a display
58based editor; in this case
59see
60.IR vi (1),
61which is a command which focuses on the display editing portion of
62.I ex.
63.SH DOCUMENTATION
64The document
65.I "Edit: A tutorial"
66provides a comprehensive introduction to
67.I edit
68assuming no previous knowledge of computers or the \s-2UNIX\s0 system.
69.PP
70The
71.I "Ex Reference Manual \- Version 3.5"
72is a comprehensive and complete manual for the command mode features
73of
74.I ex,
75but you cannot learn to use the editor by reading it.
76For an introduction to
77more advanced forms of editing using the command mode of
78.I ex
79see the editing documents written by Brian Kernighan for the editor
80.I ed;
81the material in the introductory and advanced documents works also with
82.I ex.
83.PP
84.I "An Introduction to Display Editing with Vi"
85introduces the display editor
86.I vi
87and provides reference material on
88.I vi.
89All of these documents can be found in volume 2c of the Programmer's Manual.
90In addition, the
91.I "Vi Quick Reference"
92card summarizes the commands
93of
94.I vi
95in a useful, functional way, and is useful with the
96.I Introduction.
97.SH FILES
98.DT
99/usr/lib/ex?.?strings error messages
100.br
101/usr/lib/ex?.?recover recover command
102.br
103/usr/lib/ex?.?preserve preserve command
104.br
105/etc/termcap describes capabilities of terminals
106.br
107~/.exrc editor startup file
108.br
109/tmp/Ex\fInnnnn\fR editor temporary
110.br
111/tmp/Rx\fInnnnn\fR named buffer temporary
112.br
113/usr/preserve preservation directory
114.SH SEE ALSO
a015fe5e 115awk(1), ed(1), grep(1), sed(1), grep(1), vi(1), termcap(5), environ(7)
3437507f
KM
116.SH AUTHOR
117Originally written by William Joy
118.br
119Mark Horton has maintained the editor since version 2.7, adding macros,
120support for many unusual terminals,
121and other features such as word abbreviation mode.
122.SH BUGS
123The
124.I undo
125command causes all marks to be lost on lines changed and then restored
126if the marked lines were changed.
127.PP
128.I Undo
129never clears the buffer modified condition.
130.PP
131The
132.I z
133command prints a number of logical rather than physical lines.
134More than a screen full of output may result if long lines are present.
135.PP
136File input/output errors don't print a name if the command line \fB`\-'\fR
137option is used.
138.PP
139There is no easy way to do a single scan ignoring case.
140.PP
141The editor does not warn if text is placed in named buffers and not used
142before exiting the editor.
143.PP
144Null characters are discarded in input files, and cannot appear in resultant
145files.