34
echo "Do that? [Y,n]"
read input
if [[ $input == "Y" || $input == "y" ]]; then
echo "do that"
else
echo "don't do that"
fi
Pay close attention to the syntax and spacing of the if conditional, it gets me all the time in bash :)