Checking spelling with ispell

Back in Chapter 6, we showed you how to spell-check your files by using spell and piping the output to more. UNIX also offers you ispell, which gives you an interactive way of spell-checking files, similar to the spell-checking capabilities of many word processing programs (Figure 15.2).

Figure 15.2. ispell lets you interactively spell-check your files.


To check spelling with ispell:

1.
ispell gudspeler

At the shell prompt, type ispell followed by the name of the file you want to spell-check. You'll be greeted with your first (allegedly) misspelled word, the sentence the misspelling appears in, suggested words to replace the misspelled word with, and (probably) a menu at the bottom of the screen, as shown in Figure 15.2. The key menu items are listed in Table 15.1.

2.
Complete your spell-check using ispell's menu items.

3.
q

Press q to exit ispell, saving all of your changes.

Tip

Try one (or more) of these flags with the ispell command:


Tip

-b creates a backup file.


Tip

-S sorts guesses by likely correctness.


Tip

-B reports run-together words as spelling errors.


Tip

-M makes sure the menu appears at the bottom of the screen, assuming it doesn't appear automatically.


..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.141.192.183