Sometimes there is a need to use in BASH such structures as lists (also known as arrays) and dictionaries (also known as hashmaps and associative arrays). In this post there are some samples how to work with them.
<!--more-->
## 1. Arrays
Array creation in bash can be done this way:
```shell
sample_array=(foo bar bazz)
```
In order to add single or multiple new elements to the end of array, you should use this syntax: