Skip to content

Instantly share code, notes, and snippets.

@BasPH
Last active February 6, 2017 13:41
Show Gist options
  • Save BasPH/d842786bd2f990e53203de2348da9efd to your computer and use it in GitHub Desktop.
Save BasPH/d842786bd2f990e53203de2348da9efd to your computer and use it in GitHub Desktop.
Display line numbers with bash -x

Display line numbers with bash -x:

PS4='Line ${LINENO}: ' bash -x yourscript.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment