Use increments
suggest change$ echo {0..10..2}
0 2 4 6 8 10
A third parameter to specify an increment, i.e. {start..end..increment}
Using increments is not constrained to just numbers
$ for c in {a..z..5}; do echo -n $c; done
afkpuz
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents