Bash Script Problem - Stops after While loop
Totally new to programming (as of this morning) so please bear with me (thanks!)
I have a bash script that stops working after the first while loop. #part 1 While do This That The Otherdone #part 2 While do MOre More Moredone Every arguement above the first loop completes (including the first loop itself) but anything below (incuding the second while loop) doesn't finish. I know that it isn't a problem with an unending loop... it seems to be something about the While loop that I'm not understanding... but I can't figure it out. I just need arguments below the first while loop to take place. Any help appreciated. Thanks. |
Welcome to LQ!!
I think you may need to post your actual code.... Also, try putting in a simple echo statement right after the first loop (to confirm that you are in fact exiting the loop) |
while loop need arguments
you can exit while loop with "exit" |
Quote:
|
Quote:
The script is able to output "#WHILE MALE CHARACTERS" but doesn't do anything below. Thanks! KYLE Quote:
|
your second while loop lacks "do"
|
Thanks yooy!
Of course it was an easy answer! Thanks all for help and quick responses! KYLE |
Please mark as SOLVED once you have your answer ;)
|
All times are GMT -5. The time now is 07:35 AM. |