Re: bash increment in a given way

2010-12-11 Thread Sam Sharpe
On 11 December 2010 14:34, S Mathias wrote: > 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 > Wel

Re: bash increment in a given way

2010-12-11 Thread S Mathias
thank you, but already solved! $ for i in $(seq 0 4 16); do seq $i 1 $(( $i + 1 )); done 0 1 4 5 8 9 12 13 16 17 --- On Sat, 12/11/10, John Haxby wrote: From: John Haxby Subject: Re: bash increment in a given way To: "Community support for Fedora users" Date: Saturday, December 1

Re: bash increment in a given way

2010-12-11 Thread John Haxby
On 11 December 2010 14:34, S Mathias wrote: > > 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 > $ > > for i in 0 1 4 5 8 9; do -- users mailing list

Re: bash increment in a given way

2010-12-11 Thread Genes MailLists
On 12/11/2010 10:19 AM, Genes MailLists wrote: > On 12/11/2010 09:34 AM, S Mathias wrote: > >> 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 >> $ >

Re: bash increment in a given way

2010-12-11 Thread Genes MailLists
On 12/11/2010 09:34 AM, S Mathias wrote: > 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:\ > > Probably lots of ways to do this here'

bash increment in a given way

2010-12-11 Thread S Mathias
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