According to convention it should be in all caps
Variable names cannot start with digits
There shouldn’t be any space between the variable name, = sign and the value
The {}
is used to make the command inside it be executed first and its value is used in place of the {}
NOTE
- Shell commands are space sensitive
foo = bar
will throw error- Shell thinks that you are trying to call a function called foo with parameters = and bar
Double Quotes vs. Single Quotes
Double Quotes the string is expanded
The String is not expanded with single quotes