I have two files(file1, file2) with some records in them. I want to generate 3 reports out of these 2 files.
The conditions are:
1. The first report should contain the records that exists in both file1 and file2
2. The second report should contain records that exists only in file1 and not in file2
3. The third report should contain records that exists only in file2 and not in file1
Anyone could please suggest a sorting method for this.