Concatenate an array with itself

  • + 0 comments
    echo ${array[@]} ${array[@]} ${array[@]}
    

    or if you want to make it as 1 array

    array=(${array[@]} ${array[@]} ${array[@]})
    # Three times because it completly override array
    echo ${array[@]}