Edit User's Guide and Reference Manual
IMAGE Command
EDIT Command Summary
4–70 058061 Tandem Computers Incorporated
string-range-list
references one or more character strings in one or more lines of an EDIT
file. Turn to “String-Range-List Parameter” in Section 5 for a full
explanation of this range.
RANGE
is a keyword that tells EDIT to look for the “string” in the indicated
line-range or string-range.
How to Use IMAGE The IMAGE command works as follows:
If you use the “lstring”newstring“rstring” form of the command, for
each line in the range, the EDIT program searches for the left string
(lstring). If it finds lstring, then the EDIT program searches for the
right string (rstring). (The right string must occur to the right of the left
string.) If the EDIT program finds both lstring and rstring, all the
characters in the line segment bounded by these two strings are
replaced by new text (newstring).
If you use the END “lstring” newstring” form of the command, for each
line in range, the EDIT program searches for lstring. If the EDIT
program finds lstring, all the characters in the line segment from
lstring to the end of the line are replaced by newstring. (See
Example 3, following.)
Examples 1. The command:
*LIST 100
100 What's going on here?
*IMAGE "s "new"?" 100
100 What's new?
*
replaces the line segment bound by the string s(space) on the left and
? on the right with the string new.