python - Bash For Loop skip numbers -


i want create bash script.

that skip 1000 on each loop untill 2m,

i'm stuck here:

for in {1..2000000} ;  done; 

for exmple:

the first loop:

offset=0 

second loop:

offset=100 

3rd loop

offset=2000 

until 2m

i try few ways no success.

python welcome also

how can that?

use while loop :

i=0 while [ $i -lt 2000000 ]        echo offset=$i     i=$(($i+1000))   done 

Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -