bash increment in a given way
- From: S Mathias <smathias1972@xxxxxxxxx>
- Date: Sat, 11 Dec 2010 06:34:14 -0800 (PST)
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
$
thanks:\
- Follow-Ups:
- Re: bash increment in a given way
- From: andrea
- Re: bash increment in a given way
- From: Camaleón
- Re: bash increment in a given way
- From: Chris Davies
- Re: bash increment in a given way
- From: Chris Jackson
- Re: bash increment in a given way
- Prev by Date: Re: Scrolling problems Iceweasel (Radeon HD 3850 problem?)
- Next by Date: Re: Debian 5 installation
- Previous by thread: Scrolling problems Iceweasel (Radeon HD 3850 problem?)
- Next by thread: Re: bash increment in a given way
- Index(es):