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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -