1. execute the script with current shell progress
$source example.sh
or
$. example.sh
2. execute the script with debug option
$ bash -x example.sh
or
$set -x
$./example.sh
$set +x
1. execute the script with current shell progress
$source example.sh
or
$. example.sh
2. execute the script with debug option
$ bash -x example.sh
or
$set -x
$./example.sh
$set +x