Deleted Added
full compact
ed.1 (1297) ed.1 (1410)
1.TH ED 1 "21 May 1993"
2.SH NAME
3.\" ed, red \- text editor
4ed \- text editor
5.SH SYNOPSIS
6ed [-] [-sx] [-p \fIstring\fR] [\fIfile\fR]
7.\" .LP
8.\" red [-] [-sx] [-p \fIstring\fR] [\fIfile\fR]

--- 32 unchanged lines hidden (view full) ---

41In this mode commands are read from the standard input and
42executed to manipulate the contents of the editor buffer.
43A typical command might look like:
44.sp
45.RS
46,s/\fIold\fR/\fInew\fR/g
47.RE
48.sp
1.TH ED 1 "21 May 1993"
2.SH NAME
3.\" ed, red \- text editor
4ed \- text editor
5.SH SYNOPSIS
6ed [-] [-sx] [-p \fIstring\fR] [\fIfile\fR]
7.\" .LP
8.\" red [-] [-sx] [-p \fIstring\fR] [\fIfile\fR]

--- 32 unchanged lines hidden (view full) ---

41In this mode commands are read from the standard input and
42executed to manipulate the contents of the editor buffer.
43A typical command might look like:
44.sp
45.RS
46,s/\fIold\fR/\fInew\fR/g
47.RE
48.sp
49which replaces all occurences of the string
49which replaces all occurrences of the string
50.I old
51with
52.IR new .
53
54When an input command, such as
55.I `a'
56(append),
57.I `i'

--- 663 unchanged lines hidden (view full) ---

721By default, only the first match in each line is replaced.
722If the
723.I `g'
724(global) suffix is given, then every match to be replaced.
725The
726.I `n'
727suffix, where
728.I n
50.I old
51with
52.IR new .
53
54When an input command, such as
55.I `a'
56(append),
57.I `i'

--- 663 unchanged lines hidden (view full) ---

721By default, only the first match in each line is replaced.
722If the
723.I `g'
724(global) suffix is given, then every match to be replaced.
725The
726.I `n'
727suffix, where
728.I n
729is a postive number, causes only the
729is a positive number, causes only the
730.IR n th
731match to be replaced.
732It is an error if no substitutions are performed on any of the addressed
733lines.
734The current address is set the last line affected.
735
736.I re
737and

--- 263 unchanged lines hidden ---
730.IR n th
731match to be replaced.
732It is an error if no substitutions are performed on any of the addressed
733lines.
734The current address is set the last line affected.
735
736.I re
737and

--- 263 unchanged lines hidden ---