beautypg.com

HP NonStop G-Series User Manual

Page 167

background image

OBEY Command

EDIT Command Summary

4–88

058061 Tandem Computers Incorporated

If your command file includes an ADD command, EDIT treats every
line after the ADD command as text until it reads a line that contains
two consecutive right slants (//) in columns 1 and 2. For example:

ADD 100

This is text being added

to the current file. Text is added until EDIT

encounters only two consecutive right slants

in columns 1

and 2

//

Placing the double slant directly in your text in columns 1 and 2 can be
tricky. If you type two right slants after an ADD command, EDIT
simply thinks you’re done adding text and returns you to the EDIT
prompt. So, if you use the ADD command in EDIT to create your
command file, type two characters in columns 1 and 2 other than the
right slants, then replace them by using either the CHANGE or FIX
command (these commands are described previously). You can also
compose your command file in EDIT VS (see Appendix C) or in TEDIT
(see the TEDIT command, following).

If your command file includes a REPLACE command, EDIT treats
every line after the REPLACE command as replacement text until it
exhausts the range or until it reads a line that contains two consecutive
right slants in columns 1 and 2. If EDIT encounters two right slants, it
deletes the remaining text lines in the REPLACE command range (if
any). (See the REPLACE command later in this section.)

This manual is related to the following products: