Bash
Arrays Commands
Work with arrays in Bash. Learn indexed and associative arrays, array manipulation, and iteration.
14 commands
Pro Tips
Use '${#array[@]}' to get the number of elements in an array.
Use 'declare -A' for associative arrays (key-value pairs) in Bash 4+.
Common Mistakes
Array indices start at 0. Sparse arrays are allowed - indices don't need to be consecutive.