HP NonStop G-Series User Manual
Page 183
![background image](/manuals/397048/183/background.png)
REPLACE Command
EDIT Command Summary
4–104
058061 Tandem Computers Incorporated
Examples: Using the
REPLACE Command
Implicitly
Suppose the current file contains this text:
3 Persons attempting to find a motive in this narrative
4 will be prosecuted;
5 persons attempting to find a moral in it
6 will be banished;
7 persons attempting to find a plot in it
8 will be shot.
With the following series of commands, you can implicitly replace lines 3
through 8 with new text, then list the results:
*3 "We should be careful to get out of an experience"
*4 "only the wisdom that is in it — and stop there;"
*5 "lest we be like the cat that sits on a hot stove."
*6 "She will never sit down on a hot stove again —"
*7 "and that is well; but also she will never sit"
*8 "on a cold one anymore."
*LIST ALL
3 We should be careful to get out of an experience
4 only the wisdom that is in it — and stop there;
5 lest we be like the cat that sits on a hot stove.
6 She will never sit down on a hot stove again —
7 and that is well; but also she will never sit
8 on a cold one anymore.
*
Note that you do not need
to type REPLACE at each
asterisk prompt when
using REPLACE implicitly.