Comment déclarer et itérer sur un tableau associatif en bash :
declare -A array
array[foo]=bar
array[bar]=foo
for i in "${!array[@]}"
do
echo "key  : $i"
echo "value: ${array[$i]}"
done
 -
                
                http://stackoverflow.com/questions/3112687/how-to-iterate-over-associative-array-in-bash
  
 -
                
                http://stackoverflow.com/questions/3112687/how-to-iterate-over-associative-array-in-bash