Let's take it through an example. An example ksh script is as follows:
ab = 123 c = ad = b echo "$ {c} $ {d}" # Prints AB, but $ A needs to be printed I 123 "$ AB" # Print content $ A that is 123
How do I the contents of varible through "$ {c} $ {d}"
> means that the content of $ ab
was created
You can use eval to get it:
eval y = '$' $ {c} $ {d}; Revert $ y
No comments:
Post a Comment