Hi there, I am new to Unix and at the moment
I am trying to solve my assignment that is to create a script for the program
to prompt user to type three codes,
from user point of view it should be done by
typing codes separating them by spaces.
Then program displays a menu with these three
codes and asks to choose one, the user
should type the number of the chosen code
in the list and the user should be able to type numbers
until it is one of three numbers in list.
I have managed a piece but I feel it doesnt reflect what is asked, could anybody please help me to get on right direction or give me some tips.
echo "Could you please input three codes
for me: $code1 $code2 $code3"
echo ******* Select from menu *******
case $Keypress in
"1")$1
"2")$2
"3")$3
echo
until[ $# < 4 ]
do
echo "You choose: \c"
read Keypress
done
Cross-posting is not allowed!
Well I was kicked from the other forum because my question was not relevant to that forum, what can i do?
Please Proceed with your QUESTION in this Forum only...
And read the rules before posting...:D:D
Thanks.
I still hope someone can help me with my thread :rolleyes:
Hate to burst your bubble once more, but...
I'm going to close this thread with no infraction.
Do not post classroom or homework problems in the main forums. Homework and coursework questions can only be posted in this forum under special homework rules.
Please review the rules, which you agreed to when you registered, if you have not already done so.
More-than-likely, posting homework in the main forums has resulting in a forum infraction. If you did not post homework, please explain the company you work for and the nature of the problem you are working on.
If you did post homework in the main forums, please review the guidelines for posting homework and repost.
Thank You.
The UNIX and Linux Forums.