My script:
echo "input yes or no"
read a
if [ $a = "yes" ] or [ $a = "Yes" ] or [ $a = "YES" ];
then
command
else
command
done
I have an idea that I will convert the answer (using the tr A-Z a-z
command) first and after that compare with string... is that okay?