Created
November 12, 2020 09:05
-
-
Save gdebenito/651fb66035ee445ae082f6e576545976 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// Print variable name with the variable value | |
printVariable() { | |
variableName=$1; | |
variableValue=$(eval "echo -n \$$1"); | |
echo "$variableName=$variableValue"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment