beautypg.com

HP NonStop G-Series User Manual

Page 76

background image

Listing Your Files: The ?FILES Command

Revising Text in Your File

058061 Tandem Computers Incorporated

3–33

means EDIT tried to put the text from line number 27 of COLE on line
number 11 of MARKET but found that line number 11 already had text on
it. To fix this problem and complete the copy of COLE into MARKET,
simply renumber MARKET from line number 11 to the end of the file. Then
issue another GET command to copy lines 27 through the end of COLE into
MARKET. For example:

*NUMBER 11/LAST TO 100
*GET COLE 27/LAST TO 11
LAST NEW LINE IS 13 <- 28
CURRENT FILE IS $WORK.FICTION.MARKET
*LIST ALL
10.991 To market, to market to buy a fat pig,
10.992 Home again, home again, jiggety-jig;
10.993
10.994 Old King Cole was a merry old soul,
10.995 And a merry old soul was he;
10.996 He called for his pipe, and he called for his
10.997 And he called for his fiddlers three.
10.998 Every fiddler, he had a fine fiddle,
10.999 And a very fine fiddle had he;
11 Oh, there's none so rare as can compare
12 With King Cole and his fiddlers three.
100 To market, to market to buy a fat hog,
101 Home again, home again, jiggety-jog;
102
103 To market, to market to buy a plum bun,
104 Home again, home again, market is done.
*

Use LIST to see

the results.

Then, if you want, you can use the NUMBER command to renumber the
line numbers of the file.

This manual is related to the following products: