Replacing Text
The Replace feature helps you replace every occurrence of a word or phase with another word or phase in a file.
1.Press function key [F2] and the [7] key. The Replace display appears.
| Replace | Dir | ||||
| ||||||
|
|
|
|
| ||
|
| |||||
Search string : |
|
| Forward | |||
Replace with : |
|
| ||||
Backward | ||||||
|
|
|
| |||
|
|
| ||||
To quit: ESC |
|
| ||||
|
|
|
|
|
|
Mode
Query
All
Figure 4-7 Replace screen
2.Type the word you want to replace on the "Search string " line.
3.Press the [ ] to select "Replace with." Type the new word.
4.Select Forward or Backward to search the file in a forward or backward direction respectively from the cursor position.
5.Select whether you want to be queried or not each time the word is found.
Query: Stop at each occurrence of word to answer yes or no to replacement.
All: Replace every occurrence of word without stopping to confirm.
6. Press the [Enter] key to start the replacement.
Goto Line
This feature places the cursor at the head of a line desired. Press function key [F2] and the [9] key. The following display appears.
Goto Line
Jump to Line No. :
Figure 4-8 Goto line screen
Key in line number and press the [Enter] key. The cursor shifts to the head of the line selected.