I am trying to concatenate arrays on Command Line Interface. example:
array1=( a b c )
However, echo $array1 prints only the first element of the array.
I am trying to concatenate arrays on Command Line Interface. example:
array1=( a b c )
However, echo $array1 prints only the first element of the array.
In order to print the complete array, you will have to get all array members:
array1=( a b c );
echo ${array1[@]}
> a b c
More information about bash arrays here.