Adding and displaying text 2–4, The current file is now, The add command: adding text to your file – HP NonStop G-Series User Manual
Page 40
![background image](/manuals/397048/40/background.png)
The ADD Command: Adding Text to Your File
Adding and Displaying Text
2–4
058061 Tandem Computers Incorporated
If you type another ADD without requesting a whole or fractional line
number, EDIT begins adding text at the next available line number, using
the previously established numbering method:
*ADD
75.13 But all the tunes
75.14 That he could play
75.15 //
*
The current file is now:
35 Tom, Tom,
45 The piper's son
55 Stole a pig
65 And away he run.
75 Tom, Tom,
75.1 The piper's son
75.11 He learned to play
75.12 When he was young;
75.13 But all the tunes
75.14 That he could play
75.2 Are "Over the hills
85 And far away."
Suppose that your file begins on line 1, and you want to add text before line
1. You can use ADD 0 to insert text before the first line of your file:
*ADD 0
0 Tom, Tom, The Piper's Son
0.1
RETURN
0.2 A Favorite Nursery Rhyme
0.3 From the Mother Goose Collection
0.4
RETURN
0.5
RETURN
0.6 //
*