I am trying to write a section of script that tests a variable to see if it matches 1 of 2 things, if not then loop until it does. I am trying the following syntax but with no luck:
read VAR
while test \($VAR -ne ABC || $VAR -ne XYZ\)
do
print "\nDoh..! Try again...."
read GASAPP
done
I have tried messing around with []'s but still have no luck. Can someone please tell me what I'm doing wrong?
Thanks in advance
John
read VAR
while test \($VAR -ne ABC || $VAR -ne XYZ\)
do
print "\nDoh..! Try again...."
read GASAPP
done
I have tried messing around with []'s but still have no luck. Can someone please tell me what I'm doing wrong?
Thanks in advance
John