egrep -i "^useraccount:" /etc/passwd; if [ $? -eq 0 ]; then echo "User Exists" else echo "User does not exist -- Invalid Username" fi