~johanvandegriff/unix-shell-programming-revised-edition-programs

unix-shell-programming-revised-edition-programs/word -rw-r--r-- 183 bytes
fc214385Johan Vandegriff added other old scripts, some newer ones too 1 year, 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
echo "Word:"
read word
if [ -n "$word" ] && grep -i "^$word$" "/usr/share/dict/words" > /dev/null
then
  echo "$word exists."
else
  echo "$word does not exist."
fi

read a