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
You need to put a blank Space between "if" and the variable:
if [ $var == "y" ]; then echo "ese era el problema" fi