Results 1 to 2 of 2
hey, lookin for some advice, I am getting the user to input a letter, A or B, I only want the user to type in A or B, so how ...
- 11-22-2011 #1Just Joined!
- Join Date
- Nov 2011
- Posts
- 3
until loop
hey, lookin for some advice, I am getting the user to input a letter, A or B, I only want the user to type in A or B, so how would I make my scirpt to check if thats the input and return and error if its something else until the user types in A or B. Its a bash script btw
many thanksLast edited by ppatryk; 11-22-2011 at 10:50 PM.
- 11-23-2011 #2
This sounds a lot like a homework question, which are not allowed on this forum, so I am going to close this thread.
An until loop is basically a negated while loop, so you may want to look into those.DISTRO=Arch
Registered Linux User #388732


