« Return to Thread: scripting tip needed

Re: scripting tip needed

by evuraan::ഏവൂരാന് :: Rate this Message:

Reply to Author | View in Thread

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!
>
>
> --
>
_______________________________________________
freebsd-questions@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@..."

 « Return to Thread: scripting tip needed