![]() |
|
|
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 |
| While loop with Multiple variables | amit1_x | Shell Programming and Scripting | 4 | 04-02-2008 07:35 AM |
| Multiple Conditionals | jeriryan87 | Shell Programming and Scripting | 1 | 07-02-2007 05:07 PM |
| How to loop thru and change multiple files in realtime system? | merliech | Shell Programming and Scripting | 2 | 04-25-2006 01:25 AM |
| Nested Loop to Echo Multiple Arrays | yongho | Shell Programming and Scripting | 1 | 07-12-2005 12:35 PM |
| for loop with multiple variables ? | fosterian | Shell Programming and Scripting | 3 | 03-01-2004 05:15 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Multiple conditionals in a while loop
Hi was wonderring about the syntax for the following peice of code:
while [[ $life != 0 || $mask != $word ]] ; do This is apparently incorrect. I want the loop to continue WHILE $life is not equal to zero or $mask is not equal to $word. Should ONE of these conditions fail to be met, loop should break out. Any ideas? thanks in advance: Sant |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|