hi all ,
i wanted to know if someone knows how can i use
a variable inside another variable
e.g.
#!/bin/csh
foreach test(1 2 3)
set sta_$test = "2"
\#\#now its the problem i want to echo the new var
\#$sta_$test , each time with anothe num \($test = 1 , 2 etc...\)
echo $sta_$test
end
does anyone has an idea ??
thanks a lot
udi