echo "Input yes or no: \c" read user_input if [ "$user_input" = yes ] then echo You input yes. fi