Skip to content

Instantly share code, notes, and snippets.

@skurhse
Created May 15, 2021 04:08
Show Gist options
  • Save skurhse/f9c5d3b806d4ec501590dd15d4fcb9c1 to your computer and use it in GitHub Desktop.
Save skurhse/f9c5d3b806d4ec501590dd15d4fcb9c1 to your computer and use it in GitHub Desktop.
Bash declare -n example
for e in 'key' 'tar' 'sig'
do
declare -n ref="$e"
wget --output-document "${ref[file]}" "${ref[url]}"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment