Artificial intelligent assistant

How achieve variable indirection (refer to a variable whose name is stored in another variable) in tcsh I'm trying to do the following: set a = kitten set temp_kitten = purr echo ${temp_$a} I want the `echo` command to return "purr". The overall idea is that I have a bunch of variables in an array and a bunch of `temp_variables` in another array and I want to loop through them in a single `foreach` loop for comparison.

You can use `eval`:


eval echo \$temp_$a


**References**

* Bash variable indirection

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy e8ceb0b4d1b5a99be735ad27cc6b7a94