Search Results

Search: Posts Made By: wumpus
174,898
Posted By wumpus
That works for Korn shell, but I was looking for...
That works for Korn shell, but I was looking for a Bourne shell solution.

---------- Post updated at 01:24 PM ---------- Previous update was at 01:11 PM ----------

/bin/sh$ var=foo
/bin/sh$...
174,898
Posted By wumpus
How to save eval output
/bin/sh$ var=foo
/bin/sh$ foo=bar
/bin/sh$ eval echo \${$var}
bar
/bin/sh$ val=`eval echo \${$var}`
bad substitution

How can I save the output of eval echo \${$var} to a variable?

Thanks.
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 03:33 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy