Shell Scripts
(cont)
More on shell variables:
no need to declare shell variables; simply use them
are local to the current execution of the shell.
all variables have type string
initial value of variable = empty string
note that
x=1
is equivalent to
x="1"
Examples:
$ x=5 y="6" z=abc $ echo $(( $x + $y ))
11
$ echo $(( $x + $z ))
5