Looping and Skipping

  • + 11 comments
    for number in {1..99..2}
    do
        echo $number
    done
    

    1 is the low end.
    99 is the high end.
    2 is the step after each iteration.