if ! grep $1 'dict'; then
firstword=$1
firstletter=${firstword:0:1};
echo $firstletter
else
echo "hello"
fi
I'm not sure if it's grep that's running, but when the case is that the word Now is in the file dict it prints the word Now to the standard output. If I put in Noww and Noww isn't in it, it will just print out N. What's causing it to print out Now?