Linux spell Command
The Linux spell command can create a spell-checking program.
spell reads strings from standard input and displays misspelled words when finished.
Syntax
spell
Example
To check whether the file testfile has spelling errors, enter the following command at the command-line prompt:
spell testfile
If the file contains misspelled words, the following information is output:
$ spell testfile #检查testfile 拼写错误
scurity #以下为有错误的单词
tp
LANs
Securty
practicl
applcations
necesary
If the checked file has no misspelled words, the command produces no output.
Check a string read from standard input. For example, enter the following command at the command line:
spell
After pressing Enter, type a string, then press Ctrl+D to exit spell; the misspelled words will be displayed on the screen, as shown below:
$ spell #检查标准输入的字符串的拼写错误
hell,this is a linx sustem! #拼写错误的字符串
linx #以下为有拼写错误的单词
sustem
Linux Command Reference