HP Integrity NonStop H-Series User Manual
Page 107
Searching for Words
Advanced Editing Features
4–22
058060 Tandem Computers Incorporated
Options: Put IGNORE-CASE in this field. You can extend the search to
include both uppercase and lowercase versions of the search-text by
typing IGNORE-CASE (or the abbreviation I) in the Options field. If
you do not tell TEDIT to find all occurrences of “dept-name” regardless
of whether they are typed in uppercase or lowercase letters, TEDIT only
locates the text that looks exactly like what you typed in the Search-for
field.
You can limit the search to single words; for example, if you want to
search for only “you,” put WORD-DELIMITED or W in the Options
field. Otherwise, TEDIT searches for all the words with “you” in them,
including “your,” “yours,” and “bayou.”
When found: Tell TEDIT what to do after finding the search-text. You
can put any commands here that you would put on the *C response
line. For example, you could insert a line or change a word to
uppercase letters.
The When-found option is best used with compound commands, such
as two or more commands and their options strung together. If you
have a single change to make to the search-text, it is easier to use the
REPLACE command from the beginning rather than using the When-
found option on the SEARCH command. REPLACE is discussed a little
later in this section.
Search for: dept-name
In lines: F/L
In columns: 1:239
Options: IGNORE-CASE
When found:
TEDIT fills in the
line range for you.
Leave this field blank.
Type the
search-text here.
TEDIT fills in the
column range for you.
Tell TEDIT to look for both
uppercase and lowercase.
4.
Press *C to begin the search. TEDIT finds the first occurrence of “dept-
name,” positions the cursor on the word, and displays a message on the
status line confirming it. Type “Production” here right over “dept-
name”; press
CHAR INS
once to make room for the new word.