How to print shell commands as they are executed?

You can enable debugging of your script execution to print shell commands as they are executed. The debugging can be enabled for the session-level or directly within the script using set -x command.

Leave a Reply