Hello, Is it possible to take the difference of two arrays in bash.. Would be really great if you could suggest me the way to do it..
Code :
Array1=( "key1" "key2" "key3" "key4" "key5" "key6" "key7" "key8" "key9" "key10" )
Array2=( "key1" "key2" "key3" "key4" "key5" "key6" )
Array3 =diff(Array1, Array2)
Array3 ideally should be :
Array3=( "key7" "key8" "key9" "key10" )
Appreciate your help,
Thanks Kiran