I have some data that looks similar to this:
Column1 Column2 Column3 Column4 Column5
GoodData 123 GoodData ABC GoodData
GoodData 123 GoodData BCA Gooddata
GoodData 456 GoodData BCA Gooddata
and so on....
each Columns 2 and 4 have duplicate values. I need to each unique instance where both those columns are you unique though. So if Column2 says "123" and Column4 says "ABC" for 1 row, but another row Column2 says "123" and Column4 says "BCA" I want both rows. Additionally I want both rows if Column4 is the same both rows but Column2 is different. Hopefully that makes sense. I have tried doing with sort -unique with group-object and multiple sort -unique pipes with no luck. I cant seem to figure out the trick to getting what I am looking for. Any ideas would be appreciated.
Thanks
Chris
Chris Morgan