I want to remove lines in text based on duplicate keywords. The text goes something like this.
text1,abc,text2
text3,cde,text4
text5,abc,text6
text7,gfh,text8
text9,cde,text10
I want to make it into.
text1,abc,text2
text3,cde,text4
text7,gfh,text8
The idea is to take the text, split it based on lines and put it through 2 loops. Then comparing the two arrays it would remove duplicates from it. How can I do this?