Re: create variables in a loop?

Liste des GroupesRevenir à cu shell 
Sujet : Re: create variables in a loop?
De : dwhodgins (at) *nospam* nomail.afraid.org (David W. Hodgins)
Groupes : comp.unix.shell
Date : 29. May 2024, 13: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.html
Which shell will you be working in?
Regards, Dave Hodgins

Date Sujet#  Auteur
29 May 24 * create variables in a loop?12Dr Eberhard W Lisse
29 May 24 +- Re: create variables in a loop?1David W. Hodgins
29 May 24 +* Re: create variables in a loop?2Kenny McCormack
29 May 24 i`- How to use "eval" (was: create variables in a loop?)1Helmut Waitzmann
29 May 24 +- Re: create variables in a loop?1Lew Pitcher
29 May 24 +- Re: create variables in a loop?1Helmut Waitzmann
29 May 24 +- Re: create variables in a loop?1Chris Elvidge
29 May 24 +* Re: create variables in a loop?3Janis Papanagnou
29 May 24 i`* Re: create variables in a loop?2Eberhard W Lisse
29 May 24 i `- Re: create variables in a loop?1Kenny McCormack
30 May 24 +- Re: create variables in a loop?1Lawrence D'Oliveiro
30 May 24 `- Re: create variables in a loop?1Lawrence D'Oliveiro

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal