![]() |
|
|
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 |
| Help using IFS to break up a record (ksh) | lyonsd | Shell Programming and Scripting | 2 | 11-01-2007 03:53 PM |
| Break mirror so that it can be used later | AQG | HP-UX | 2 | 10-10-2007 10:03 PM |
| TO break a line | aajan | Shell Programming and Scripting | 7 | 08-28-2007 05:12 AM |
| ssh break the while loop? | fedora | Shell Programming and Scripting | 5 | 05-23-2007 11:54 AM |
| Sending a break | Acleoma | SUN Solaris | 4 | 11-21-2004 02:36 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
break out of 'if'
actually I also trying to do the same thing...
here is the codes sample: #======================== if ($status == 0) then #blabla... if ($status == 0) then goto SUBB else goto SUBA endif else goto SUBA endif end SUBA: #blabla exit 0 #break? exit 1? SUBB: if (blabla) then #lalalala... else goto SUBAendif exit 0 #break? exit 1? #================== I want my program to exit the SUBA and SUBB after finish running all the line inside the program..I already try use exit but the program still never stop running.. ![]() |
|
||||
|
Quote:
its difficult for me to use case statement because I need to check the 1st condition first before proceed to next checking ...different parameter check. can it be done this way instead? #======================== if ($status == 0) then #blabla... if ($status == 0) then SUBB else SUBA endif else SUBA endif end SUBA() { #blabla } SUBB() { if (blabla) then #lalalala... else SUBA endif } #================== |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|