Skip to content

Instantly share code, notes, and snippets.

@richiethomas
Created October 3, 2023 13:59
Show Gist options
  • Save richiethomas/6d656b8406e0813f0d42e1f6027531e0 to your computer and use it in GitHub Desktop.
Save richiethomas/6d656b8406e0813f0d42e1f6027531e0 to your computer and use it in GitHub Desktop.
#!/bin/bash
my_var="Hello, World!"
variable_name="my_var"
echo "${!variable_name}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment