0

Suppose I have two string array a,b,c,d and e also a,b,c and d. I want to compare both the strings and remove the non duplicate value of these strings. Could you find me something for this.

Ahmed Ashour
  • 5,179
  • 10
  • 35
  • 56
  • possible duplicate of http://stackoverflow.com/questions/13648410/how-can-i-get-unique-values-from-an-array-in-bash – BeginnersSake Feb 14 '17 at 06:12
  • in the above question, take a,b,c,d in one string and a,e,c,d,b in another...i want to remove unmatched character and show remaining string.. – pankaj balkote Feb 14 '17 at 06:21
  • Make one array containing elements from both the arrays, then apply the technique in the linked question. – Grisha Levit Feb 14 '17 at 07:43

0 Answers0