Searching and Replacing in files
Prev | Chapter 4. Using Bless | Next

## Searching and Replacing in files

### Searching in files

To access the Search Bar use Search → Find (Ctrl+F).

Figure 4.7. Search Bar

To search for a sequence of bytes:

1. Type the sequence in the Search for text entry (in the desired format).

2. Select the format of the typed sequence from the Interpret as option menu.

3. Press the Find Next or Find Previous button. If a match is found it will be highlighted in the Data View, otherwise an alert informing you that no match was found will be shown.

To hide the Search Bar press the Escape key while the bar has the focus or click on the close button located at the right side of the bar.

### Tip

You can use the Search → Find Next (F3) and Search → Find Previous (Shift+F3) commands to search without re-opening the Search Bar.

### Replacing in files

To access the Replace Bar use Search → Replace (Ctrl+R).

Figure 4.8. Replace Bar

To replace a sequence of bytes with another sequence of bytes:

1. Type the search sequence in the Search for text entry (in the desired format).

2. Select the format of the search sequence from the first Interpret as option menu.

3. Type the replace sequence in the Replace with text entry (in the desired format).

4. Select the format of the replace sequence from the second Interpret as option menu.

5. Press the Replace button to replace the current match, the Replace All to replace all matches in the file or the Find button to skip the current match and go to the next match. If a match is found it will be highlighted in the Data View, otherwise an alert informing you that no match was found will be shown.

To hide the Replace Bar press the Escape key while the bar has the focus or click on the close button located at the right side of the bar.

### Tip

To delete the matched search sequences, leave the Replace with text entry completely blank.

Prev | Up | Next
Editing a file | Home | Exporting Data