|
if statement problem
hi all. i just have a very small problem. i have a menu of 7 choices. i want an if statement so that if the user chooses anything except inside the 1 to 7 range, i can handle the error for it.
i tried this:
if [ $choice -ne [1-7] ]
then
.......
fi
(but it dont work)
...any suggestions?
thanks all in advance
|