Back in Chapter 4, we showed you how to spell–check your files. Unix also offers you ispell, which gives you an interactive way of spell–checking files, similar to the spellchecking capabilities of many word processing programs (Figure 15.1).
1. | ispell gudspeler At the shell prompt, type ispell followed by the name of the file you want to spellcheck. You’ll be greeted with your first (allegedly) misspelled word, the sentence the misspelling appears in, suggested words to replace them is spelled word with, and (probably) a menu at the bottom of the screen, as shown in Figure 15.1. The key menu items are listed in Table 15.1.
| ||||||||||||||||||
2. | |||||||||||||||||||
3. | Press to exit ispell, saving all of your changes. |
✓ Tip
Try one (or more) of these flags with the ispell command:
-b | creates a backup file. |
-S | sorts guesses by likely correctness. |
-B | reports run–together words as spelling errors. |
-M | makes sure the menu appears at the bottom of the screen, assuming it doesn’t appear automatically. |