Indiana University
University Information Technology Services
  
What are archived documents?
Login>>
Login

Login is for authorized groups (e.g., UITS, OVPIT, and TCC) that need access to specialized Knowledge Base documents. Otherwise, simply use the Knowledge Base without logging in.

Close

In Unix, what is Ispell and how do I use it to spell-check files?

Ispell is a spell-checking program available for many Unix implementations. To use it, at your Unix shell prompt, enter:

ispell filename

Replace filename with the name of the file you wish to check.

In this case, for each word that does not appear in its dictionary, Ispell will display the word at the top of the screen and allow you to change it. Additionally:

  • If the dictionary contains any near misses (i.e., words that differ by only a single letter, a missing or extra letter, a pair of transposed letters, or a missing space or hyphen), Ispell will display them on following lines.

  • As well as near misses, Ispell may display other guesses at ways to make the word from a known root, with each guess preceded by question marks.

  • Finally, Ispell will print the line containing the word and the previous line at the bottom of the screen. If your terminal can display in reverse video, Ispell highlights the word itself. You can replace the word completely, or choose one of the suggested words.

Basic Ispell commands include:

r Replace the misspelled word completely.
Spacebar Accept the word this time only.
a Accept the word for the rest of this Ispell session.
i Accept the word, capitalized as it is in the file, and update the private dictionary.
u Accept the word, and add a lowercase version to the private dictionary.
0, 1, ... n Replace with the suggested word corresponding to that number.
l (the letter L) Look up words in system dictionary (controlled by the WORDS compilation option).
x Write the rest of this file, ignoring misspellings, and start the next file.
q Exit immediately and leave the file unchanged.
! Escape to the Unix shell.
Ctrl-l (the letter L) Redraw the screen.
Ctrl-z Suspend Ispell.
? Show the help screen.

Note: You can type these commands in either lowercase or uppercase; commands in Ispell are not case sensitive.

For more about Ispell, see the man page for Ispell. At the Unix shell prompt, enter man ispell .

At Indiana University, for personal or departmental Linux or Unix systems support, see At IU, how do I get support for Linux or Unix?

This is document abxb in domain all.
Last modified on May 13, 2009.

Comments/Questions/Corrections

Use this form to offer suggestions, corrections, and additions to the Knowledge Base. We welcome your input!

If you are affiliated with Indiana University and would like assistance with a specific computing problem, please use the Ask a Consultant form, or contact your campus Support Center.

Contact Information

Note: We will reply to your comment at this address. If your message concerns a problem receiving email, please enter an alternate email address.