Relative Content

Tag Archive for bashubuntu

How to convert “$()” and “${}” inside a bash variable

The following script shows the actual value of “$()” and “${}” first, and then put all “$()” and “${}” inside a variable “x” as a string contains some bash expressions inside, finally, try to use “$(eval)” to convert all “$()” and “${}” into actual value, and then set the result to “y“.