If name is an array variable, expands to the list of array indices (keys) assigned in name. Make sure your script's hashbang is #!/usr/bin/env bash or #!/bin/bash or anything else that references bash and not sh.Make sure you're executing your script, and not doing something silly like sh script which would cause your bash hashbang to be ignored. 1) Adding Element to a List. So I believe that `array_concat` is a perfect alias for `array_merge` in terms of numeric arrays and a valid (albeit unnecessary) alias for associative arrays. Let’s create an array that contains name of the popular Linux distributions: distros=("Ubuntu" "Red Hat" "Fedora") The distros array current contains three elements. Associative arrays are an abstract data type that can be considered as dictionaries or maps. Introduction to Bash arrays, Enter the weird, wondrous world of Bash arrays. Iterate over two arrays simultaneously in bash, From anishsane's answer and the comments therein we now know what you want. Associative arrays can be created in the same way: the only thing we need to change is the option used: instead of lowercase -a we must use the -A option of the declare command: $ declare -A my_array This, as already said, it's the only way to create associative arrays in bash. An array is a table of values, called elements.The elements of an array are distinguished by their indices. Or anyway as Darael suggests FWIW passing /Backups/backups/20152011-120209{.zip,} to  The purpose of zip() is to map the similar index of multiple containers so that they can be used just using as single entity. $i and reading the $i -th element from $allThreads to set the value of the --threads parameter  Adding array elements in bash. But they are also the most misused parameter type. In plain English, an indexed array is a … Bash Associative Arrays Example. 5. Arrays in awk. How you can insert single and multiple data at the end of the array in bash is shown in this article. 7. Initialize elements. Arrays. As mentioned earlier, BASH provides three types of parameters: Strings, Integers and Arrays. Create indexed arrays on the fly You can do this using List of array keys. If possible, do this in a way that does not mutate the original two associative arrays. Bash Associative Arrays by Mitch Frazier. Bash provides one-dimensional indexed and associative array variables. Syntax : zip(*iterators) Parameters : Python iterables or containers ( list, string etc ) Return Value : Returns a single iterator object, having mapped values from all the containers. Let's look adding element to a list with an example. There is no maximum limit on the size of an array, nor any requirement that members be indexed or assigned contiguously. Associative arrays (sometimes known as a "hash" or "dict") use arbitrary nonempty strings as keys. Elements in arrays are frequently referred to by their index number, which is the position in which they reside in the array. Python zip() behavior in bash?, Pure bash: liori@marvin:~$ zip34() { while read word3 <&3; do read word4 <&4 ; echo $word3 $word4 ; done } liori@marvin:~$ zip34 3