HP NonStop G-Series User Manual
Page 179
![background image](/manuals/397048/179/background.png)
REPLACE Command
EDIT Command Summary
4–100
058061 Tandem Computers Incorporated
REPLACE Command
The REPLACE command replaces all the text on a line with new text. There
are two forms of the REPLACE command: the explicit form and the implicit
form (see the examples that follow).
What to Enter
The syntax of the explicit REPLACE command is:
REPLACE [ QUIET ] { range-specifier }
QUIET
tells the EDIT program not to list the existing line of text prior to
deleting it.
range-specifier
indicates combinations of line-range and string-range parameters. Turn
to “Range-Specifier Parameter” in Section 5 for a full explanation of this
range.
The syntax for replacing lines implicitly with the REPLACE command
is:
lnum "[ replacementtext ]"
lnum
is an EDIT-file line number that references an existing line whose text
you want to replace or a nonexisting line where you want to add text.