PS TEXT EDIT Reference Manual

SEARCH
TEDIT Commands
058059 Tandem Computers Incorporated 3–183
Tips
After you enter the SEARCH command and see the response lines, you
can press the HELP key once to see a short help text and twice to see
the complete help text.
TEDIT searches for multi-word search-text within a single line.
Therefore, if the search-text is broken across two lines, SEARCH does
not recognize this as the search-text.
When you specify F/L or ALL as the line range in the SEARCH
command and you specify a command in the “When found:” search
field that causes lines to be added to your file, TEDIT does not
recognize these additional lines as part of that F/L or ALL range of
lines.
When you use the FINDNEXT, FINDPREV and the *C commands with
the SEARCH command, you could have different results than what you
expect. For example:
If you enter SEARCH and then *C, the search begins at the
beginning of the file through to the end of the file.
If you enter SEARCH and then FINDNEXT, the search begins at the
cursor position through to the end of the file. If you are positioned
at the middle of the file, TEDIT only searches from the middle of
the file to the end, thus never searching the beginning of the file.
If you enter SEARCH and then FINDPREV, the search begins at the
cursor position and searches backwards in the file to the beginning.
TEDIT never searches the end of the file.
Related Commands
FINDNEXT searches for next occurrence of search-text.
FINDPREV searches for last occurrence of search-text.
REPLACE substitutes a replace text for a search-text.