Bash array manipulation

view full story

http://www.unix.com – seeking assistance on comparing two arrays using bash: array1=(disk1, disk2, disk3, disk5, disk7, vol1, vol2, vol3, vol4, vol5) array2=(disk2, disk5 vol2, vol4 ) 1) if two arrays have same elements; EXIT else populate array3 & array4 with elements that are different between array1 & array2 as: array3=(vol1, vol3, vol5) array4=(disk1, disk3, disk7) thanks in advance (HowTos)