![]() |
|
#1
|
|||
|
|||
bash: use [ test in a for(( loopIs there a way to get an arithmetic for(( loop
to use a [ or [[ test? Example: Code:
|
|||
|
#2
|
||||
|
||||
Re: bash: use [ test in a for(( loopHello Howard,
I tried Googling around for some 'for loop' examples having a string test in the condition, but could not find any... However, I did have the idea to use a function in the condition to do the same? Maybe this could help with the goal? Code:
__________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
|
#3
|
|||
|
|||
Re: bash: use [ test in a for(( loopHa, so it will take the result of your command there:
CPP / C++ / C Code:
But I don't think that would build more efficient code , right? From what I've heard so far it looks like it can't be done... dave would give us the old "FULL STOP!" and all that So I'll have to learn to accept this "while" form which is really that bad: Code:
Code:
Howrd(); |
|
#4
|
||||
|
||||
Re: bash: use [ test in a for(( loopQuote:
Quote:
Quote:
__________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
Recent GIDBlog
Programming ebook direct download available by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| run script command on ns2.26 | newbie06 | Computer Software Forum - Linux | 65 | 19-Aug-2009 08:50 |
| Looking for test clients | paradoxservers | Free Web Hosting | 0 | 04-Jan-2008 13:10 |
| fltk-2.0 cvs | Plumb | FLTK Forum | 20 | 13-Nov-2004 08:10 |
| [CONTEST?]Data Structure Test | dsmith | C Programming Language | 2 | 06-Jun-2004 16:13 |
| CSS Layout question | oihjk | Web Design Forum | 3 | 28-May-2003 12:36 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The