Jan
26
comment Is there a way in csh to dynamically check environment variables?
Further: yeah I know about how terrible csh is; this is one of those usual sob stories about how I can't do anything to change our reliance on it :(
Jan
26
accepted Is there a way in csh to dynamically check environment variables?
Jan
26
comment Is there a way in csh to dynamically check environment variables?
Woot! you were close! eval echo \$"$SO"_"$n" is the correct string. I'll update your answer and give you cred!
Jan
26
comment Is there a way in csh to dynamically check environment variables?
I tried your approach and am getting the env variable names as output: a_1 a_2 a_3 a_4 using this code: #!/bin/csh -f set SO=a foreach n ( 1 2 3 4 ) eval echo "\$SO"_"$n" end NOTE: I shortened my environment variables to a_1 a_2 a_3 and a_4.
Jan
26
asked Is there a way in csh to dynamically check environment variables?
Dec
17
awarded Notable Question
Dec
12
awarded Yearling
Dec
4
awarded Supporter
Dec
4
awarded Student
Dec
4
asked Is there a way to turn off the fields so I can just see the portals?
Nov
19
awarded Popular Question
Sep
5
awarded Famous Question
Jul
2
awarded Curious
May
16
comment Does soil need sunlight?
Isn't that contrary to all the no-till gardening stuff I've been hearing about?
May
15
awarded Scholar
May
15
awarded Supporter
May
15
accepted Does soil need sunlight?
May
14
awarded Editor
May
14
comment Does soil need sunlight?
I updated the question based on your questions. Hopefully that helps.
May
14
revised Does soil need sunlight?
updated the question based on questions
1 2 3 4 5