does anyone know if there are any other ways besides "set -x" that can be used to see what a shell script is doing?
It depends on the shell. These are the most common:
set -o xtrace
sh -x <infile>
_DEBUG="on"
1 Like