In Shell script they are declare variable like ${variable_name},Is it equal to $variable_name
what is the difference between ${variable_name} and $variable_name ?
In Shell script they are declare variable like ${variable_name},Is it equal to $variable_name what
Share
If you wrote a variable ($myvariable) with the text like this
Then shell may not be able to distinguish a variable name so you needs to use
{}here like thisThen the shell knows
myvariableis a variable here andbaris textCheckout here is a clear explanation.