Latest web development tutorials

Linux spell command

Linux command Daquan Linux command Daquan

Linux spell command to build a spell checker.

spell can be read from the standard input string, the end of the show misspelled words.

grammar

spell

Examples

Check the file testfile if there are spelling errors, enter the following command at the command prompt:

spell testfile 

If the file has spelling errors, output the following information:

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

Check if the file is not misspelled word, then, will not give any information about the command to run.

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

spell 

Press the Enter key, enter a string of a string, and then press the key combination Ctrl + D to exit the spell, displayed misspelled word. As follows:

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

Linux command Daquan Linux command Daquan