Checking Spelling with ispell

Checking Spelling with ispell

Back in Chapter 4, we showed you how to spellcheck your files. Unix also offers you ispell, which gives you an interactive way of spellchecking files, similar to the spellchecking capabilities of many word processing programs (Figure 15.1).

Figure 15.1. ispell lets you interactively spellcheck your files.

To Check Spelling with ispell:


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.

Table 15.1. ispell Menu Items



Accept the word this time only.

Replace with a word that you'll specify (after you type R).

Accept the word for the rest of the current session.

Insert the word into your dictionary.

Insert the word (as all lowercase) into your dictionary.

Quit ispell, without saving any changes.

Exit ispell saving all changes.


Replace highlighted word with a suggested word by typing the appropriate number


Complete your spellcheck using ispell's menu items.


Press to exit ispell, saving all of your changes.


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


    creates a backup file.


    sorts guesses by likely correctness.


    reports runtogether words as spelling errors.


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

Unix(c) Visual Quickstart Guide
UNIX, Third Edition
ISBN: 0321442458
EAN: 2147483647
Year: 2006
Pages: 251

Similar book on Amazon © 2008-2017.
If you may any questions please contact us: