![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| exit out of a while loop with error | sigh2010 | Shell Programming and Scripting | 2 | 03-03-2009 04:51 PM |
| how to exit a while true loop | Noob e | Shell Programming and Scripting | 5 | 08-26-2007 03:44 PM |
| Method to exit a for loop | Rohini Vijay | Shell Programming and Scripting | 2 | 11-01-2006 05:56 AM |
| while loop exit | Terrible | Shell Programming and Scripting | 3 | 07-28-2006 06:20 PM |
| csh exit while loop on keystroke | seg | Shell Programming and Scripting | 7 | 12-29-2004 11:45 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Exit from loop only when selected
I am trying to get my program to exit when the answer to my question is positive, if I am asking if the answers are correct in the entries that the user inputted and the user says no how do I then have it exit? If they say everything is correct then it continue into the program, I think I am close but my syntax maybe off.
Stop=N while [[ $Stop = "N" ]] do read -p "Are you sure you inputed all numbers correctly? (y/n)" Stop exit done |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|