Date: Sun, 12 Dec 2010 09:45:37 -0800 (PST) From: Mark Terribile <materribile@yahoo.com> To: S Mathias <smathias1972@yahoo.com>, freebsd-questions@freebsd.org Subject: Re: freebsd-questions Digest, Vol 340, Issue 15 Message-ID: <709178.44988.qm@web110304.mail.gq1.yahoo.com> In-Reply-To: <20101212120029.9002610657DF@hub.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
>
> It's ok, that i can use this, when i want an incrementing
> sequence, in a given way:
>
> # {START..END..INCREMENT}
> $ for i in {0..10..2}; do echo "Welcome $i times"; done
> Welcome 0 times
> Welcome 2 times
> Welcome 4 times
> Welcome 6 times
> Welcome 8 times
> Welcome 10 times
> $
>
> but what's the "magic" for this? :
>
> $ MAGIC; do echo "Welcome $i times"; done
> Welcome 0 times
> Welcome 1 times
> Welcome 4 times
> Welcome 5 times
> Welcome 8 times
> Welcome 9 times
> $
What's wrong with
for i in 0 1 4 5 8 9 ; do echo "Welcome $i times"; done
?
Or is there some rule that you want followed? If there is, it's not
obvious to me. (Sorry.)
Mark Terribile
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?709178.44988.qm>
