#apt-get install aspell
# yum install aspell
# cat tmp.txt
hello
linus
world
shell groad www net
unix and linux go spellings
# aspell check tmp.txt
# apt-cache search aspell
aspell-de-alt - German dictionary for aspell (old spelling)
aspell-lt - aspell dictionary for Lithuanian (LT)
aspell-uk - Ukrainian dictionary for GNU Aspell
aspell-et - Estonian dictionary for Aspell
ilohamail - Light weight yet full featured multilingual web-based IMAP/POP3 client
aspell-gl-minimos - Aspell dictionary for Galician (minimos)
aspell-de - German dictionary for aspell
aspell-ca - Catalan dictionary for aspell
aspell-fo - The Faroese dictionary for aspell
aspell-bg - Bulgarian dictionary for aspell
... ...
#!/bin/bash
word=$1
output=`echo \"$word\" | aspell list`
if [ -z $output ]; then
echo $word is a dictionary word;
else
echo $word is not a dictionary word;
fi
# ./aspell.sh groad
groad is not a dictionary word
# ./aspell.sh hello
hello is a dictionary word
欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) | Powered by Discuz! X3.2 |