Hi all,
I want to write a test so that the user must enter a numeric or alpha character:
echo "Please enter your name before you login: \c"
while read ANS
do
if [[ ${ANS} = "^[0-9][aA-Zz]" ]] ; then
do something
fi
done
this doesn't seem to work - I want a value to be entered to ANS
how can I make this loop until ANS = something
Thanks
Chris
hello