Consider 2 variables in bash as follows:
X = 8 Y = X
If I want to print the value of X using the variable Y , I could do echo ${!Y} , and the value 8 will be printed
Now the question is, how to change the value of X using the variable Y ?
source share