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

  

posted on 2019-09-28 10:44  一纸情书べ  阅读(153)  评论(0编辑  收藏  举报