Sujet : Re: create variables in a loop?
De : dwhodgins (at) *nospam* nomail.afraid.org (David W. Hodgins)
Groupes : comp.unix.shellDate : 29. May 2024, 12:48:41
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <op.2oi63fdaa3w0dxdave@hodgins.homeip.net>
References : 1
User-Agent : Opera Mail/12.16 (Linux)
On Wed, 29 May 2024 06:57:06 -0400, Dr Eberhard W Lisse <
nospam@lisse.na> wrote:
Hi,
I would like to do something like
for i in USD GBP
do
$i=somevalue
done
does not work, of course.
Any idea on how to create (and fill variables through a loop)?
greetings, el
There are many tutorials for getting started with shell scripting available,
such as
https://tldp.org/LDP/abs/html/index.html which has a "for/in loop"
example at
https://tldp.org/LDP/abs/html/loops1.htmlWhich shell will you be working in?
Regards, Dave Hodgins