Basics of Debugging Linux Shell Scripts
There are two ways to specify debugging options. One is to specify options when executing the <span>bash</span> command: # -x prints commands and their arguments during execution bash -x debug.sh The other is to set it in the <span>bash</span> script using the built-in command <span>set</span>: #!/bin/bash set -x # Enable debugging # Here is some … Read more