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