diff --git a/bash/associative_array.bash b/bash/associative_array.bash index bf3eb03..e4ce184 100644 --- a/bash/associative_array.bash +++ b/bash/associative_array.bash @@ -12,8 +12,16 @@ array[repo_three]=false # The key is accessed using the exclamation point for i in "${!array[@]}" do - echo "key : $i" + echo "key: $i" if ${array[$i]}; then echo "$i is true" fi -done \ No newline at end of file +done + +# Output will be: +# +# key: repo_one +# repo_one is true +# key: repo_two +# repo_one is true +# key: repo_three