it would be appreciated if you can help me out this case.
I have 2 arrays
array1=(1 2 3)
array2=(5 2 6)
Is there anyway to filter out the different elements from comparing those 2 arrays with bash script.
The expected result is
array3=(1 3 5 6)
Thank you so much,