Add the following two lines:
set -x export PS4='$LINENO '
And you will get the line number and the text of each executed line 🙂
Add the following two lines:
set -x export PS4='$LINENO '
And you will get the line number and the text of each executed line 🙂