scripting tip needed

Evuraan evuraan at gmail.com
Fri Jul 3 19:09:16 UTC 2009


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 at dada~]$ z=0
> [ne at dada~]$ y=1
> [ne at dada~]$ x=aaa
> [ne at dada~]$ eval `echo MACHINE_DISK$z[$y]`=$x
> [ne at dada~]$ echo $(eval echo \${MACHINE_DISK$z[$y]})
> aaa
> [ne at dada~]$
>
> Thanks anyway!
>
>
> --
>


More information about the freebsd-questions mailing list