Bash Unsetting a variable
Unsetting a variable
#!/bin/bash
# unset.sh: Unsetting a variable.
variable=hello # Initialized.
echo "variable = $variable"
unset variable # Unset.
# Same effect as variable=
echo "(unset) variable = $variable" # $variable is null.
exit 0