`set -x` in a shell script will tell bash to print...
# general
b
set -x
in a shell script will tell bash to print every command executed