I have the following situation, two arrays, let\'s call them A( 0 1 ) and B ( 1 2 ), i need to combine them in a new array C ( 0:1 0:2 1:1 1:2 ), the latest bit i\'ve come u
One line statement to merge two arrays in bash:
combine=( `echo ${array1[@]}` `echo ${array2[@]}` )