Re: scripting tip needed

2009-07-03 Thread Evuraan
good thing you found the answer. I am glad you did, and oh, I am more glad that you found your solution on ksh itself and not on advanced scripting language, like Perl or Python.'' Guys, I eventually found it with lots of rtfm on variable substitution and such.. [...@dada~]$ z=0

Re: scripting tip needed

2009-07-02 Thread Alexandre Vieira
On Wed, Jul 1, 2009 at 10:07 PM, Giorgos Keramidas keram...@ceid.upatras.gr wrote: On Wed, 1 Jul 2009 22:02:48 +0200 (CEST), Wojciech Puchar woj...@wojtek.tensor.gdynia.pl wrote: Using an interactive language like Python you can actually *test* the code as you are writing it. This is a

scripting tip needed

2009-07-01 Thread Alexandre Vieira
Hi folks, I'm having a little problem. For exambe in ksh: $ z=0 $ y=1 $ x= $ eval `echo MACHINE_DISK$z[$y]`=$x $ echo ${MACHINE_DISK0[1]} My problem is getting back the value of the variable using variables to refer to the variable name (confusing). I.e $MACHINE_DISK$z[$y] . Using

Re: scripting tip needed

2009-07-01 Thread Giorgos Keramidas
On Wed, 1 Jul 2009 18:40:00 +0100, Alexandre Vieira nul...@gmail.com wrote: Hi folks, I'm having a little problem. For exambe in ksh: $ z=0 $ y=1 $ x= $ eval `echo MACHINE_DISK$z[$y]`=$x $ echo ${MACHINE_DISK0[1]} My problem is getting back the value of the variable using

Re: scripting tip needed

2009-07-01 Thread Wojciech Puchar
$ echo ${MACHINE_DISK0[$y]} $ echo ${MACHINE_DISK$z[$y]} ksh: ${MACHINE_DISK$z[$y]}: bad substitution Thanks in advance for any tip install bash :) ___ freebsd-questions@freebsd.org mailing list

Re: scripting tip needed

2009-07-01 Thread Wojciech Puchar
Using an interactive language like Python you can actually *test* the code as you are writing it. This is a major win most of the time. could you explain what you mean? You can and you have to test a code on any language be it bash, ksh python or C

Re: scripting tip needed

2009-07-01 Thread Giorgos Keramidas
On Wed, 1 Jul 2009 22:02:48 +0200 (CEST), Wojciech Puchar woj...@wojtek.tensor.gdynia.pl wrote: Using an interactive language like Python you can actually *test* the code as you are writing it. This is a major win most of the time. could you explain what you mean? You can and you have to