Revising text in your file 3–22 – HP NonStop G-Series User Manual
Page 65
![background image](/manuals/397048/65/background.png)
The MOVE Command: Moving Lines of Text in Your File
Revising Text in Your File
3–22
058061 Tandem Computers Incorporated
You can then move lines 7 and 8 to the end of the file. You can use the
particular line number (in this case, line 11) or, if you don’t know what it is,
you can use the range LAST:
*MOVE 7/8 TO LAST
11 And Jill came
12 tumbling after.
*
Lines 5 and 6 belong in a different poem. You can move them out of your
text to a new location by telling EDIT to locate them elsewhere in the file:
*MOVE 5/6 TO 50
50 One shoe on and
51 one shoe off,
*
If you don’t want to keep the lines at all, you can simply use the DELETE
command.
Perhaps you want some text to appear in several places of your file. You
can use MOVE with the keyword COPY to copy lines of text from one
location in the file to other locations in the same file. (When you copy lines,
the lines you are copying remain in their original location in the file.)
To copy line number 1 to line numbers 15, 20, 25, and 30, type:
*MOVE COPY 1 TO 15, 20, 25, 30
15 Jack and Jill
20 Jack and Jill
25 Jack and Jill
30 Jack and Jill
*