For example this code:
Code:
echo "Do you live in the US? (y/n)";
read confirm
if [ '$confirm' == 'y' ];then
echo "In US";
fi
if [ '$confirm' == 'n' ];then
echo "Outside US";
fi
How can I get it to keep looping and asking the question again if no answer is entered?
TIA