I have the code below, but whenever I run it and enter an incorrect name it doesn't show the error message, it just goes blank.
#!/bin/bash
name=$1
if [ "$name" = "" ]
then echo -n "Enter a name to search for: "
read name
else
echo "Name '$name' is not in directory"
fi
grep -i $name ~uli101/2015a/phonebook