Subversion Repositories planix.SVN

Rev

Details | Last modification | View Log | RSS feed

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