while true; do echo -n "Input your input: " read input case $input in "") echo "You lost. Play again";; *) break ;; esac done