i see some code like this
SERIAL_NO="121"
if [ -z "${SERIAL_NO}" ]; then
echo -e "ERROR: serial number of the device is not provided!"
exit 1
else
here it use ${SERIAL_NO} to got the SERIAL_NO variable. i want know what the difference between $var and ${var} and why use ${var} here.
thanks