Hello, this is my first post so hello everyone!
I am writing a script with a menu that will return an error message if the user does not pick one of the valid options, and another if the user just presses the enter key.
Is it possible to use a while loop to detect if the user has only hit the enter key?
Below is a sample of the code I used when try to catch the enter key.
while [ "$userInpurtTest" != "[Enter]" ]
\t "echo you did not make a selection"