Guys,
I want to remove duplicate records from a file where only the columns supplied by the user match.
eg: 2001|typ|CA|089
2001|bkj|CA|987
2004|bkp|CA|986
2006|typ|CA|654
Considering the above file as input.
Suppose the user supplies columns 2 & 3 to search for duplicates, then the program should give the following output as duplicate records..
2001|typ|CA|089
2006|typ|CA|654
Other records should be written to a non duplicate file.
Any suggestions??
Thank you in advance.
I want to remove duplicate records from a file where only the columns supplied by the user match.
eg: 2001|typ|CA|089
2001|bkj|CA|987
2004|bkp|CA|986
2006|typ|CA|654
Considering the above file as input.
Suppose the user supplies columns 2 & 3 to search for duplicates, then the program should give the following output as duplicate records..
2001|typ|CA|089
2006|typ|CA|654
Other records should be written to a non duplicate file.
Any suggestions??
Thank you in advance.