Date: Fri, 3 Jul 2009 11:43:10 -0700 From: Evuraan <evuraan@gmail.com> To: Alexandre Vieira <nullpt@gmail.com> Cc: Giorgos Keramidas <keramida@ceid.upatras.gr>, Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl>, freebsd-questions@freebsd.org Subject: Re: scripting tip needed Message-ID: <6fbcd0710907031143k3c929404qbb4de33301046eef@mail.gmail.com> In-Reply-To: <755cb9fc0907021119n26dee870t83ca3d1c9c5c3c90@mail.gmail.com> References: <755cb9fc0907011040o28b82cdbjd5760b139f797050@mail.gmail.com> <87tz1wqkmu.fsf@kobe.laptop> <alpine.BSF.2.00.0907012202070.1817@wojtek.tensor.gdynia.pl> <87k52saz86.fsf@kobe.laptop> <755cb9fc0907021119n26dee870t83ca3d1c9c5c3c90@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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..
>
> [ne@dada~]$ z=0
> [ne@dada~]$ y=1
> [ne@dada~]$ x=aaa
> [ne@dada~]$ eval `echo MACHINE_DISK$z[$y]`=$x
> [ne@dada~]$ echo $(eval echo \${MACHINE_DISK$z[$y]})
> aaa
> [ne@dada~]$
>
> Thanks anyway!
>
>
> --
>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6fbcd0710907031143k3c929404qbb4de33301046eef>
