Created
May 25, 2014 07:36
-
-
Save lalyos/8e8dbadbc488c344d45f to your computer and use it in GitHub Desktop.
bash function to debug env vriables by pattern
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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