beautypg.com

Edit command summary – HP NonStop G-Series User Manual

Page 100

background image

ADD Command

EDIT Command Summary

058061 Tandem Computers Incorporated

4–21

Adding Text to a New EDIT File

1.

To create and add text to a new EDIT file named POEMS, type:

12> EDIT POEMS
TEXT EDITOR - T9601B30 - (08MAR87)
$WORK.FICTION.POEMS DOES NOT EXIST. SHALL I CREATE IT? y
CURRENT FILE IS $WORK.FICTION.POEMS
*ADD
1 Hey diddle diddle
2 The cat and the fiddle
3 The cow jumped
4 Over the moon.
5 //
*

Starts the

EDIT program

Begins adding text

at line number 1

and numbers

subsequent lines by

an increment of 1

2.

If you invoke the EDIT program without an EDIT file name and issue
an ADD command, the EDIT program prompts you to name the file. If
the file name you type names a new EDIT file, the EDIT program
creates an EDIT file with that name, begins adding new text to that file
starting at line 1, and numbers each new line by an increment of 1. If
the file name you type names an existing EDIT file, EDIT asks you if
you want to purge it:

13 EDIT

TEXT EDITOR - T9601B30 - (08MAR87)

*ADD

1 Hickory, dickory, dock

NAME THE NEW FILE: poems

SHALL I PURGE THE OLD FILE NAMED $WORK.FICTION.POEMS? y

2 The mouse ran up the clock;

3 //

*

This manual is related to the following products: