Linux Community
List all the elements in an array: ${my_array[@]}
${my_array[@]}
List all the keys (indices) in an array: ${!my_array[@]}
${!my_array[@]}
if test "${my_array['key']+isset}" then echo "The key exists." else echo "The key does not exist."fi