| Silicon_Pudding |
Mar 15th, 2007 1:41 AM |
Help with this code
:
ITERATE=240
for COUNT in `seq -w 1 $TOTAL`
do
OTHER=$(($COUNT*2))
... more stuff
...
done
The problem I am having is that I can't figure out how to multiply COUNT by 2. In this example since TOTAL is 240, COUNT will be 3 digits. I get an error message at count 8 saying the value is too great for the base, which I assume is because of 3 digits and something with binary.
Is there a way I can multiply this number by two, while still interating through by one?
|