[CentOS] bash increment in a given way

Sat Dec 11 16:49:34 UTC 2010
S Mathias <smathias1972 at yahoo.com>

bingo. :)

Thanks!!! :)

--- On Sat, 12/11/10, Mihai T. Lazarescu <mtlagm at gmail.com> wrote:

From: Mihai T. Lazarescu <mtlagm at gmail.com>
Subject: Re: [CentOS] bash increment in a given way
To: centos at centos.org
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 at centos.org
http://lists.centos.org/mailman/listinfo/centos



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20101211/ac37d11c/attachment-0005.html>