i need a help how do i validate that a given field is not blank ie it should not go to the next field when i press enter.
What do you mean by "field"? Something like this?
while true; do
echo -n "Input your input: "
read input
case $input in "") echo "You lost. Play again";; *) break ;; esac
done
This will loop until the user enters non-blank input.