|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Manipulating counter var in for loop
how can you use your for loop counter in the body? For example, I want to multiply my counter, say i, by 10 but I get "specified substitution is not valid". What it does allow me to do is add 1 to it. Here's my statement:
j=${i*10}. thanks, Rick |
|
#2
|
|||
|
|||
|
Language?
Just a hunch, but I think you mean "$j = $i*10". |
|
#3
|
|||
|
|||
|
this is a unix ksh script so the $j is not the right syntax.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Other Programming Languages > Manipulating counter var in for loop |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|