Write shell scripts to determine whether to use the word dictionary file

! # / bin / the bash
S = `CAT / usr / Share / dict / linux.words`
for I in $ S; do
      IF [$. 1 = $ I]; the then
          echo" $. 1 in the dictionary "
          Exit
     Fi
DONE
    echo" $. 1 not in the dictionary. "

Guess you like

Origin www.cnblogs.com/70xinshidai/p/11599137.html