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
Post a Comment