I have a file of about 1 Million records. I need to extract the records which have different FName and LName for id.
Input File
Col1,Col2,Col3,Col4,ID,FName,Col5,LName,Col6,Col7,Col8
AP,[email protected],xyz1,abc1,123,Ram,,Kumar,phn1,fax1,url1
AP,[email protected],xyz2,abc2,123,Shyam,,Kumar,phn2,fax2,url1
AP,[email protected],xyz1,abc1,345,Raman,,Kumar,phn2,fax2,url1
AP,[email protected],xyz1,abc1,345,Raman,,Kumar,phn2,fax2,url1
AP,[email protected],xyz1,abc1,567,Alex,,Smith,phn2,fax2,url1
AP,[email protected],xyz1,abc1,789,Allen,,Prack,phn2,fax2,url1
The result that I want to see
AP,[email protected],xyz1,abc1,123,Ram,,Kumar,phn1,fax1,url1
AP,[email protected],xyz2,abc2,123,Shyam,,Kumar,phn2,fax2,url1
Any AWK or Sed command or script can help? Thanks
567,Alex,Smithand789,Allen,Prackare NOT present in expected output, though they have their first and last names unique.