Last active
February 25, 2022 03:29
-
-
Save chaimleib/a8d48fb0eab24437a9e2 to your computer and use it in GitHub Desktop.
print variable name and its value in bash
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
#!/bin/bash | |
function debug() { echo "$1 => \"$(eval echo \$$1)\"" >&2; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment