Edlin: R (Replace)--Notes
You must not insert a space between the r and any subsequent parameter on the command line.
If you omit the line1 parameter, Edlin begins the search on the line after the current line. If you
omit the line2 parameter, Edlin stops the search at the end of the file or at the end of the
portion of text in memory.
If you omit the string1 parameter, Edlin uses the more recently used of the following two values: the
value that you specified for string1 the last time you used the r command or the value that you specified for string the last time you used the s command during this session. If you omit string1 and you have not used the r or s command yet during the editing session, the command stops.
If you omit the string2 parameter, Edlin uses the value you specified the last time you used the r command during this session. If you omit the string2 parameter and you have not used the r command yet during this session, Edlin deletes all occurrences of the string
that is specified for string1.
Using the separator parameter
You must separate the string1 and string2 values by using the CTRL+Z key combination. Even if you omit string1, you need to press CTRL+Z to mark the beginning of string2. When you press the CTRL+Z key combination, the characters displayed are not
"CTRL+Z". Instead, you see the following:
Using the question mark (?)
If you include the ? parameter in your command, Edlin displays the line containing the first
occurrence of the string specified for string1 and prompts you by displaying the
following confirmation message:
If you press Y (for yes) or press ENTER, Edlin replaces this occurrence of the value for string1 with the value for string2 and searches for the next occurrence. If you press N (for no), Edlin does not replace this occurrence of the value for string1 and searches for the next occurrence.
If you do not use the question mark (?)
If you do not use the ? parameter to confirm replacements as they are made, Edlin makes all the
replacements at once and then displays each line that contains a replacement. If a
line contains two or more replacements, Edlin displays the line once for each
More Information About Edlin: R