Shell variables related to Creation, Inspection, Modification , lists
Points to Note:
_
.=
SIGN.number
,string
,or command
.myvar="value string"
export myvar="value string"
or
myvar="value string"
export myvar
echo $myvar # $ sign is important
echo ${myvar} #Good method to use variable values
echo "${myvar}_something"
unset myvar #removes the variable myvar
myvar= #Same effect as above line
[[ -v myvar ]];
echo $?
# If myvar is unset, returns 1 i.e, myvar is not set.
# Returns 0 if myvar is set.
#used to check if variable is set
Return codes:
0 : success