bash array operations
sometimes we need to remove one element from an array
for example we remove the element 2 (third) from array
array=(”hello” “i” “like” “bash”)
i=2
array=(${array[@]:0:$i} ${array[@]:$(($i + 1))})





