On Thu, Jul 19, 2001 at 05:29:27PM +0200, Emiel Metselaar <[EMAIL PROTECTED]>
wrote:
| Thanks for the replies after some toying i found this ugly solution myself
|
| for X in $VAR1; do
| for Y in `eval echo \\${$X}`; do
| v=$Y"_port"
| echo $X $Y $v
| done
| done
|
| So now i can improve my shell script :-)
While on the topic, that third line might be better written:
v=${Y}_port
No quotes needed there. Cheers,
--
Cameron Simpson, DoD#743 [EMAIL PROTECTED] http://www.zip.com.au/~cs/
If ye can say 'tis a brrraugh brrrrrit moonlicht nicht tonicht ye're
alrrright I ken.
An old Scotts drrrinkin song taught me by my Grandmother
- Ed Campbell, [EMAIL PROTECTED] (maybe)
_______________________________________________
Seawolf-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/seawolf-list