Linux spell command

Linux 命令大全Linux Command Encyclopedia

The Linux spell command can set up a spell-checking program.

spell can read strings from the standard input device, and after finishing, it displays misspelled words.

Syntax

spell

Examples

To check whether the file testfile has any spelling errors, enter the following command at the command line prompt:

spell testfile 

If there are misspelled words in the file, the following information is output:

$ spell testfile   #检查testfile 拼写错误  
scurity            #以下为有错误的单词  
tp  
LANs  
Securty  
practicl  
applcations  
necesary 

If the file being checked has no spelling errors, then no information will be given after the command runs.

Check strings read from standard input. For example, enter the following command at the command line:

spell 

After pressing the Enter key, enter a string, then press the Ctrl+D key combination to exit spell. The screen will display the misspelled words, as shown below:

$ spell #检查标准输入的字符串的拼写错误  
hell,this is a linx sustem! #拼写错误的字符串  
linx #以下为有拼写错误的单词  
sustem 

Linux 命令大全Linux Command Encyclopedia

Other Extensions