[CentOS] bash increment in a given way

Sat Dec 11 16:05:40 UTC 2010
Mihai T. Lazarescu <mtlagm at gmail.com>

On 12/11/2010 03:41 PM, Stephen Harris wrote:
> On Sat, Dec 11, 2010 at 06:34:25AM -0800, S Mathias wrote:
> You might just have to hard-code the sequence:
>
>    for i in 0 1 4 5 8 9; do ....

This outputs:

    for i in $(seq 0 4 16); do seq $i 1 $i+1; done
    0
    1
    4
    5
    8
    9
    12
    13
    16
    17

Mihai