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?
make 1 dialog
. E.g. bash.cyberciti.biz/guide/A_yes/no_dialog_box – Dummy00001 Jun 17 '16 at 11:56