bash array addition code example
Example: bash adding to array
#!/bin/bash
#Making an array
array=(1 2 3)
#Appending the array
array+=(4)
#Printing the array
echo ${array[@]}
#!/bin/bash
#Making an array
array=(1 2 3)
#Appending the array
array+=(4)
#Printing the array
echo ${array[@]}