$ cat 11.sh #!/bin/bash read foo while [[ $foo != "Y" || $foo != "y" ]] # while [ "$foo" != "Y" ] || [ "$foo" != "y" ] do echo Hi read foo done