I trying to make a case statement like this, but this dose not work
----------------------------------------------
echo "Please Enter"
read ANS
case $ANS in
${ANS} –gt ) echo $ANS;;
${ANS} –lt 7) echo $ANS;;
esac
Is there a way to Wright a case that should have values as part of the case
Any help is appreciated
Thanks Eli
----------------------------------------------
echo "Please Enter"
read ANS
case $ANS in
${ANS} –gt ) echo $ANS;;
${ANS} –lt 7) echo $ANS;;
esac
Is there a way to Wright a case that should have values as part of the case
Any help is appreciated
Thanks Eli