Skip to content

Instantly share code, notes, and snippets.

@disouzam
Last active February 11, 2024 16:42
Show Gist options
  • Save disouzam/000eca688b1dcdd5046c42da95c0be10 to your computer and use it in GitHub Desktop.
Save disouzam/000eca688b1dcdd5046c42da95c0be10 to your computer and use it in GitHub Desktop.
Header of bash script to log commands and line number
#!/bin/bash
set -o xtrace
PS4='${LINENO}: '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment