# apt-get install wordlist
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package wordlist is a virtual package provided by:
wnorwegian 2.0.10-3.2
wswedish 1.4.5-2build1
wbritish-small 6-3
wbritish 6-3
wamerican 6-3
... ...
You should explicitly select one to install.
E: Package wordlist has no installation candidate
# egrep -i "^ab{2}" /usr/share/dict/british-english
Abbas
Abbasid
Abbasid's
Abbott
... ...
#!/bin/bash
word=$1
grep "^$1$" /usr/share/dict/british-english -q
if [ $? -eq 0 ]; then
echo $word is a dictionary word;
else
echo $word is not a dictionary word;
fi
# ./spell.sh groad
groad is not a dictionary word
# ./spell.sh net
net is a dictionary word
欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) | Powered by Discuz! X3.2 |