Creating an oversized table – HP Integrity NonStop H-Series User Manual

Page 133

Advertising
background image

Giving a Series of Commands With an OBEY File

Creating an Oversized Table

058060 Tandem Computers Incorporated

5–21

Highlight

Giving a Series of Commands With an OBEY File

There is another way, besides using a function key or the *C response line,
to give a string of commands: You can use an OBEY file. You put the
commands you want TEDIT to perform in a separate file. You can put one
command on each line or several commands separated by semicolons.
Then you open the file on which you want the commands performed and
give the OBEY command.

The following example shows an OBEY file that performs almost the same
series of commands as the string of commands you gave on the *C response
line shown in the previous example. If you want to try out the OBEY file
now, undo the previous series of commands that capitalized and added
parentheses to your file. Simply press UNDO until all the editing is
undone. Then, open a second window and follow these steps to create and
use the OBEY file.

1.

Create a new file called LAZY. Type the commands you see in the next
example. You can comment on the commands within the file by
prefacing the comment with the designation ?COMMENT. TEDIT
ignores the comment lines when it performs the commands in the file.
Put the comments in the file to remind you what the series of
commands is designed to accomplish.

?COMMENT This OBEY file makes the first character of the line the

?COMMENT cursor is in uppercase. Then it goes to the next line and

?COMMENT puts parentheses around the words on the line. Then it

?COMMENT goes to the next line and stops. You can give a command t

?COMMENT repeat the sequence at this point if you want. IGNORE-CAS

?COMMENT is specified in the REPLACE command only to cancel any

?COMMENT previous EXTENDED-SEARCH specification.

?COMMENT

UPPERCASE CHARACTER

NEWLINE

REPLACE "", "(", */*, *:*, IGNORE-CASE

FORWARD END-OF-LINE

REPLACE "", ")", */*, *:*, IGNORE-CASE

NEWLINE

Do not put any blank

space between this first

set of quotation marks.

Advertising
This manual is related to the following products: