What is the difference of echoing these variable in bash scripting?
EXAMPLE:
I declare a variable
VARIABLE="Hello World"
echo $VARIABLE
What’s the difference between the one above and this below?
echo ${VARIABLE}
Does it make a difference if I put {} or not?
No difference in your code
The curly braces, To delimiting a variable name are used for parameter expansion so you can do things like
Truncate a variable’ content
Make substitutions similar to sed
Braces can also be useful when the expansion occurs in certain contexts. For example: