#!/bin/bash
s=`cat /usr/share/dict/linux.words`
for i in $s;do
if [ $1=$i ];then
echo "$1在字典中"
exit
fi
done
echo "$1不在字典中"
#!/bin/bash
s=`cat /usr/share/dict/linux.words`
for i in $s;do
if [ $1=$i ];then
echo "$1在字典中"
exit
fi
done
echo "$1不在字典中"