Looping and Skipping

  • + 0 comments

    Then you can use while [ $i -le 100 ], also make sure to initialize i=1 in this case.

    You can also use C like construct : for (( i=1; i<=100; i+=2 )), but then again, this won't allow you to increment inside loop.