question on shell scripting and multi-directional conditional branching
I am trying to find out the difference between definite and indefinite loops in shell scripting. I know about loops from my programming class but I cannot find anything on definite and indefinite loops. If someone could point me in the right direction that would be great?
My second question is what is multi-directional conditional branch? and what is the command you type to use this? I honestly have no idea what this is and if one of you guys could shine some light that would be great. thanks |
jonhanna;
I am glad to see you asking homework questions in a rational manner. One thing you need to do is be sure and follow-up in threads you start---eg here: http://www.linuxquestions.org/questi...5/#post3398774 In that thread, you left us hanging---wondering if you ever solved the problem. You current questions will be pretty easy to find on Google. I'll give you a hint on #2: There are two basic constructs: case (aka "switch" in C) if / elif ("else if" in some languages) In your previous thread I recommended the Bash Guide for Beginners. That will cover these two approaches. |
I guess I am not understanding what you mean by your answer, sorry lol is there any way to go into further detail?
|
I have just figured out the first question, I was just typing the wrong things, I am still clueless on the second though.
|
Quote:
http://tldp.org/LDP/abs/html/testbranch.html#EX29 It's like an extended 'if' 'elif' 'else' statement, in a more user-friendly readable format, testing to see if the variable matches the condition in each case, if it does then the command there is run. |
thank you very much guys, I really appreciate all of the links as well, since I joined this site my favorites have grown 10 fold lol
|
Quote:
Try to post specific questions--eg exactly what you don't understand. |
Alright I appreciate it, I getting there step by step. lol
|
Quote:
|
is it necessary for you to even comment on this thread, no
|
lol, lol
|
OoooooooooKay....so the question has been answered and the conversation has degenerated into (whatever)
Closed |
All times are GMT -5. The time now is 11:50 AM. |