Deutsch English Français Italiano |
<op.2oi63fdaa3w0dxdave@hodgins.homeip.net> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "David W. Hodgins" <dwhodgins@nomail.afraid.org> Newsgroups: comp.unix.shell Subject: Re: create variables in a loop? Date: Wed, 29 May 2024 07:48:41 -0400 Organization: A noiseless patient Spider Lines: 18 Message-ID: <op.2oi63fdaa3w0dxdave@hodgins.homeip.net> References: <lbog03FfbrqU1@mid.individual.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: 8bit Injection-Date: Wed, 29 May 2024 13:49:06 +0200 (CEST) Injection-Info: dont-email.me; posting-host="df39f971c72343ed39ce69cf9c93b489"; logging-data="1196104"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+bTVdjZp39X5Mkd/6XM/HAREHuHMvghRc=" User-Agent: Opera Mail/12.16 (Linux) Cancel-Lock: sha1:DOa3PayLaeQO+/nwwhU18TFOPqM= Bytes: 1527 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