Sweet :}
It's a bit of a kludge, but awks for loop has no notion of a step.
It may run faster if you evaluate the quotient once, assign it to a variable
and then use that... only just noticed how ugly my hack was
Code:
i=1
while(i<366000){
j=i/1000
print ((j in a)?a[j]:j)
i+=2
}
Cheers,
Tink