View Single Post
Old Mar 15th, 2007, 1:41 AM   #1
Silicon_Pudding
Newbie
 
Silicon_Pudding's Avatar
 
Join Date: Jun 2006
Location: In a box
Posts: 27
Rep Power: 0 Silicon_Pudding is on a distinguished road
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?
__________________
~ Silicon Enhanced Pudding
"It's magically delicious"
Silicon_Pudding is offline   Reply With Quote