I am tring to do simple
Do you want to do that? [Y,n] _
question in bash.
i tried
echo \"Do that? [Y,n]\" read DO_T
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 :)