[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] initialize ten variables with a loop for
From: |
Gerard ROBIN |
Subject: |
Re: [Help-bash] initialize ten variables with a loop for |
Date: |
Thu, 10 Jan 2013 21:04:46 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Thu, Jan 10, 2013 at 02:23:23PM -0500, Chris F.A. Johnson wrote:
> Date: Thu, 10 Jan 2013 14:23:23 -0500 (EST)
> From: "Chris F.A. Johnson" <address@hidden>
> To: Gerard ROBIN <address@hidden>
> cc: Bash <address@hidden>
> Subject: Re: [Help-bash] initialize ten variables with a loop for
>
> On Thu, 10 Jan 2013, Gerard ROBIN wrote:
>
> >Hello,
> >I want to initialize ten variables : el1, el2, ... el10 :
> >
> >for i in `seq 10`; do el$i=0; done
> >
> >bash: el1=0: command not found
>> .................8<............
> >bash: el10=0: command not found
> eval el{1..10}=0
very short !
Thanks.
--
GĂ©rard