Edit User's Guide and Reference Manual
REPLACE Command
EDIT Command Summary
058061 Tandem Computers Incorporated 4–101
replacementtext
is text. If you omit 
replacementtext
 and 
lnum
 references an existing
line, EDIT deletes the current text on 
lnum
 and leaves a blank line. If
you omit 
replacementtext
 and 
lnum
 references a line that does not
exist, EDIT adds a blank line. The quote character (”) is a string-field
separator. You can also use a right slash (/) or an apostrophe (’) for a
string field separator. You must, however, use the same string-field
separator at the beginning and end of 
replacementtext
.
How to Use REPLACE The REPLACE command, when used explicitly, prompts for new text
with an EDIT file line number for each line in the specified range. When
you type the new text and press  RETURN , EDIT deletes the old text on
the line and replaces it with the new text. See Examples 1 and 2,
following.
If you type // in response to the line number prompt, EDIT asks the
following question:
SHALL I DELETE THE REMAINING LINES?
If you type “yes” or “y”, EDIT deletes the current line and any
remaining lines in the range. Any other response leaves the current and
remaining lines unchanged. In either case, the REPLACE command
terminates.
If you press  BREAK  or type CTRL-Y in response to the line number
prompt, the REPLACE command terminates and does nothing to any
remaining lines in the range.
If you want to replace lines implicitly, you simply type—at the EDIT
prompt—the line number of a file and the new text you want placed on
that line. You do not type the command REPLACE.










