commande sort Linux
Linux commande sort pour construire un correcteur orthographique.
sort peut être lu à partir de la chaîne d'entrée standard, la fin des mots montrent mal orthographié.
grammaire
spell
Exemples
Vérifiez le fichier testfile s'il y a des fautes d'orthographe, entrez la commande suivante à l'invite de commande:
spell testfile
Si le fichier contient des erreurs d'orthographe, sortie les informations suivantes:
$ spell testfile #检查testfile 拼写错误 scurity #以下为有错误的单词 tp LANs Securty practicl applcations necesary
Vérifiez si le fichier est pas mal orthographié mot, alors, ne donnera aucune information sur la commande à exécuter.
Vérifiez la chaîne lue depuis l'entrée standard. Par exemple, entrez la commande suivante à la ligne de commande:
spell
Appuyez sur la touche Entrée, entrez une chaîne d'une chaîne, puis appuyez sur la combinaison de touches Ctrl + D pour quitter le sort, affiché mot mal orthographié. Comme suit:
$ spell #检查标准输入的字符串的拼写错误 hell,this is a linx sustem! #拼写错误的字符串 linx #以下为有拼写错误的单词 sustem