Skip to content

Instantly share code, notes, and snippets.

@ramn
Created December 22, 2011 06:23
Show Gist options
  • Save ramn/1509222 to your computer and use it in GitHub Desktop.
Save ramn/1509222 to your computer and use it in GitHub Desktop.
Arrays in Bash
unset xs; declare -a xs; xs=(${xs[@]} 11); xs=(${xs[@]} 23); echo length: ${#xs[@]}; for n in ${xs[@]}; do echo $n; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment