1 03/12/76 edit replace, edit rep
2
3 Function: The replace request substitutes a given character string
4 within a specified line or range of lines. Line numbers are
5 unaffected.
6
7
8 Syntax: edit replace /old_string/new_string/line1 line2 ... lineN
9
10
11 where:
12
13 1. / is any delimiter except blank or tab; the delimiter
14 character cannot be a character in either
15 old_string or new_string.
16
17 2. old_string is a string of characters to be located.
18
19 3. new_string is a string of characters to be substituted for
20 each occurrence of old_string within the range
21 given.
22
23 4. linei is a single line number or range of lines; each
24 linei specifies the bounds within which the
25 substitution is to occur.
26
27
28 Example:
29
30 ! new new_file
31 ready 1101
32
33 ! 100 1 January 1975
34 ! 110 1 February 1975
35 ! 120 1 March 1975
36 ! edit replace /5/6/100-120
37 ready 1101
38
39
40 ! lisn
41 100 1 January 1976
42 110 1 February 1976
43 120 1 March 1976
44 ready 1101