home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


spell

spell [options ] [files ]

Compare the words of one or more named files with the system dictionary and report all misspelled words. System files for spell reside in /usr/lib/spell .

Options

-b

Check for British spelling.

-i

Ignore files included with the nroff or troff .so request. No effect if deroff is unavailable.

-l

Follow all included files (files named in .so or .nx requests); default is to ignore files that begin with /usr/lib .

-v

Include words that are derived from dictionary list but are not literal entries.

-x

Show every possible word stem (on standard error).

+ wordlist

Use the sorted wordlist file as a local dictionary to add to the system dictionary; words in wordlist are not treated as misspelled.

Example

Run the first pass of spell :

spell file1 file2 > jargon

After editing the jargon file, use it as a list of special terms. The second pass of spell produces genuine misspellings:

spell +jargon file[12] > typos


Previous: Reference: sotruss UNIX in a Nutshell: System V Edition Next: Reference: split
Reference: sotruss Book Index Reference: split

The UNIX CD Bookshelf NavigationThe UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System