Thanks for the feedback everyone, it’s been very helpful. Apologies for posting it in the wrong area and thanks @wizardfromoz for relocating it.
@dos2unix, I did not know about the set -x, which I’m sure will be help in the future as well as now.
@khedger and @JasKinasis thanks for the...