Re: bash increment in a given way

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



bingo. :)

Thanks!!! :)

--- On Sat, 12/11/10, Mihai T. Lazarescu <mtlagm@xxxxxxxxx> wrote:

From: Mihai T. Lazarescu <mtlagm@xxxxxxxxx>
Subject: Re: bash increment in a given way
To: centos@xxxxxxxxxx
Date: Saturday, December 11, 2010, 4:05 PM

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
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux