|
From: | DJ Mills |
Subject: | Re: [Help-bash] initialize ten variables with a loop for |
Date: | Thu, 10 Jan 2013 14:33:14 -0500 |
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
bash: el2=0: command not found
bash: el3=0: command not found
bash: el4=0: command not found
bash: el5=0: command not found
bash: el6=0: command not found
bash: el7=0: command not found
bash: el8=0: command not found
bash: el9=0: command not found
bash: el10=0: command not found
what is wrong in what I did?
and how can I achieve that ?
Thanks.
--
Gérard
[Prev in Thread] | Current Thread | [Next in Thread] |