Skip to content

Instantly share code, notes, and snippets.

@lalyos
Created May 25, 2014 07:36
Show Gist options
  • Save lalyos/8e8dbadbc488c344d45f to your computer and use it in GitHub Desktop.
Save lalyos/8e8dbadbc488c344d45f to your computer and use it in GitHub Desktop.
bash function to debug env vriables by pattern
debug-vars() { PATT=${1:?"<PATTERN> is required"} ; for var in $(eval "echo \${!$PATT*}"); do echo [debug] $var=${!var} ; done ; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment