Debian8系統如何用spell檢查并輸出文件中出現的拼寫錯誤
Debian8系統如何用spell檢查并輸出文件中出現的拼寫錯誤
debian8系(xi)統如(ru)何用(yong)spell檢(jian)查并(bing)輸出文件中(zhong)出現的拼寫錯誤?本教程以debian8系(xi)統為(wei)例
本(ben)配置(zhi)適(shi)用于debian8,9版(ban)本(ben)
1.介紹
Linux spell命令可建立拼寫檢(jian)查程序。
spell可從(cong)標準(zhun)輸入設備讀取(qu)字符串,結束后顯(xian)示拼錯的詞匯。
2.debian系統一般都是不內置(zhi)spell需要另(ling)外(wai)下(xia)載
apt-get install spell -y

3.例子
3.1

上圖輸(shu)出test文(wen)本(ben)內有錯誤拼寫的(de)單(dan)詞
3.2
檢查從標準輸入讀取(qu)的字(zi)符(fu)串。例如在命令行中(zhong)輸入如下命令:
spell

輸入
hella,this a linuw sustem
按回車可以顯示可能出(chu)錯的(de)單詞拼寫,想(xiang)要退出(chu)按ctrl d即可。

