Comments on: Nested Variable Substitution and Predefined BASH Variables in Linux – Part 11 https://www.tecmint.com/nested-variable-substitution-in-linux-scripting/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Thu, 30 Aug 2018 21:45:23 +0000 hourly 1 By: dragonmouth https://www.tecmint.com/nested-variable-substitution-in-linux-scripting/comment-page-1/#comment-1029981 Thu, 30 Aug 2018 21:45:23 +0000 http://www.tecmint.com/?p=7538#comment-1029981 In reply to Avishek Kumar.

“What in case of multiple variable substitution, where we are dealing with lots of variable and 100’s of lines of code???”

Unfortunately you did not provide an example of multiple variables. How are we newbies to learn if we are shown only the most basic usage?

Doesn’t the '-x' switch mean EXPORTABLE, not Executable as explained in Part 10 of these series?

]]>
By: buge https://www.tecmint.com/nested-variable-substitution-in-linux-scripting/comment-page-1/#comment-442037 Sat, 03 Jan 2015 20:03:59 +0000 http://www.tecmint.com/?p=7538#comment-442037 echo ${!y}

]]>
By: Avishek Kumar https://www.tecmint.com/nested-variable-substitution-in-linux-scripting/comment-page-1/#comment-198935 Mon, 23 Jun 2014 07:58:46 +0000 http://www.tecmint.com/?p=7538#comment-198935 In reply to Igor.

Thanks for your feedback.

But Let me know – What in case of multiple variable substitution, where we are dealing with lots of variable and 100’s of lines of code???
‘eval’ command comes to rescue there.

]]>
By: Igor https://www.tecmint.com/nested-variable-substitution-in-linux-scripting/comment-page-1/#comment-196139 Thu, 19 Jun 2014 15:51:31 +0000 http://www.tecmint.com/?p=7538#comment-196139 You don’t need to use eval to assign value of x to y.
You will get the same output using
y=$x

]]>