Tpsec02, 2 adding and displaying text – HP NonStop G-Series User Manual
Page 37
![background image](/manuals/397048/37/background.png)
2 Adding and Displaying Text
058061 Tandem Computers Incorporated
2–1
The ADD Command:
Adding Text to
Your File
Once you have created an EDIT file, you are ready to use EDIT to write a
document in your file. Or, you might already have a file that you want to
continue working on. To add text to a file, use the ADD command. EDIT
provides you with several ways to add text. You can:
Add text to the end of your file
Add text between existing lines by using decimal line numbers from
.001 to 10
Add lines of text before the first line of your file
The simplest way to add text is to ask EDIT to add it at the next available
line. You do this by typing the ADD command at the prompt (*). EDIT
responds by adding text to the end of your file, or, if you've been previously
adding text, to the place where you last added text.
For example, if you have no previous text, the command:
*ADD
1
starts you on line 1. If, however, you already have 35 lines of text, the
command:
*ADD
36
starts you on the line number (36) after the last line of text in your file. But
suppose you last added lines 35 through 40 to a file with 200 lines. The
command:
*ADD
41
starts you on the line number (41) after the line you most recently added.