Find and Replace: SE command

 

The SE (search) command is used to search for a word or phrase in an open file.

 

se: for forward search
seb: for backward search
sea: for case-sensitive (absolute) forward search
seba: for case-sensitive (absolute) backward search

 

The search command is entered as follows:

1Place the cursor at the beginning of the file or at the point in the document where you want to begin the search.  
2Press F9 to access the action line
3Type one of the four search commands above followed by a space and then a backslash (or another delimiter) then the word or phrase you want to search for then another backslash (or other delimiter).  For example, to search for the word "target", type se \target\  
4Press F10 to begin the search. Your cursor will move to the first occurrence.
5To find the next occurrence, press F10 again.
6To conduct more complex searches, see Wildcard characters: action line

 

The change commands used to replace text within an open file are as follows:

cv: pause and verify before making changes (cva  for absolute case matches)
ci: change invisible without viewing the process (cia for absolute case matches)
ch: make every change while viewing the process (cha for absolute case matches)

 

The replace command is entered as follows:

1Place the cursor at the beginning of the file or at the point in the document where you want to begin the search.  
2Press F9 to access the action line
3Type one of the change commands, followed by a space, backslash, the word or phrase to be replaced, another backslash, the replacement word or phrase and then another backslash.  For example to change the words "change from" to "change to", type: cv \change from\change to\
4Press F10 to execute the command.
5If you used the cv (or cva) change command, you will be prompted Change? Choose Yes, No, Stop here or One more by clicking one of the buttons or by typing the underlined letter.  It is possible that the Change? dialog will obscure the word or phrase that is to be changed.  If this happens, the Change? dialog can be moved.  See Moving Windows dialog boxes. If you choose ci or ch (or cia or cha) you will not be prompted until the replace is complete and Done appears on the status line.  

 

 

See also:

Find and Replace