Skip to content

Instantly share code, notes, and snippets.

@arcolife
Created July 11, 2017 10:03
Show Gist options
  • Select an option

  • Save arcolife/262a64c8c1d9358e5baf1dbd373c2074 to your computer and use it in GitHub Desktop.

Select an option

Save arcolife/262a64c8c1d9358e5baf1dbd373c2074 to your computer and use it in GitHub Desktop.
x=(a b)
for i in ${x[@]};^Co echo -e "\n$i"; done
echo ${x[@]}
a b
echo ${!x[@]}
0 1
echo ${#x[@]}
2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment