indirect shell-vars
Conor P. Cahill
cpcahil at virtech.UUCP
Wed Sep 13 06:28:50 AEST 1989
In article <627 at targon.UUCP>, ruud at targon.UUCP (Ruud Harmsen) writes:
>
> sh -c "echo \$x`echo $xx`"
>
> Are there any better/faster/shorter ways? Perhaps using "eval", but
> also executes the string, which is too much.
How about:
eval echo \$$xx
--
+-----------------------------------------------------------------------+
| Conor P. Cahill uunet!virtech!cpcahil 703-430-9247 !
| Virtual Technologies Inc., P. O. Box 876, Sterling, VA 22170 |
+-----------------------------------------------------------------------+
More information about the Comp.unix.questions
mailing list