Spell checking

Use the command ispell <filename> to run an interactive spelling checker on a file.

The command spell is a non-interactive spelling checker. It just prints out all misspelled words from the input file of words. Hence if you check a file with spell and there is no output, then no spelling mistakes were found in the given file. No news is good news!

Both spell and ispell use a dictionary that is located in the file /usr/share/dict/words. Here is an example using spell.

[alice@localhost simple]: cat test1
dada
dad
mom
father
sun
simpel
[alice@localhost simple]: spell test1
dada
simpel
[alice@localhost simple]:

The spell program by itself is not very useful. However it is useful if used from inside shell scripts. More about shell scripts in Chapter 6.