I have the following shell script
echo "please enter user name: "
read USER_NAME
while [ ! "$USER_NAME" ]
do
echo "User name can't be empty please re-enter: "
read USER_NAME
done
How can I do the same using commands on command line?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.
Sign up to join this communityI have the following shell script
echo "please enter user name: "
read USER_NAME
while [ ! "$USER_NAME" ]
do
echo "User name can't be empty please re-enter: "
read USER_NAME
done
How can I do the same using commands on command line?