I have been stuck for an hour now and still can't figure this out. FYI - I am new to the bash scripting. Here is what I am trying to do
var="Y"
while [ "$var" = "Y"]
do
echo "Hello World!!"
echo "Keep going? [Y/N]"
read var
done
I am getting an error in the while line (while [ "$var" = "Y"]) - I pretty much tried everything - with single ', double " - no "
./script: line 4: [: missing `]'. Trying to read the error message can help.