Goal : To get the Unique and Duplicates values from Input Data
Input :
There is a input file which contains duplicates data, Suppose :13
22
95
37
78
87
29
33
33
13
12
87
21
32
13
In this file :
Unique values are : 22 95 37 78 29 12 21 32
Duplicate values are : 13 33 87
Now, we need 3 kind of outputs:
Job1:
We need 2 o/p fileo/p1 --> Contains Uniq values
o/p2 --> Contains Duplicate Values ( each once ) i.e - 13 33 87
Job2
We need 2 o/p fileo/p1 --> Contains Uniq values
o/p2 --> Contains Duplicate Values ( no of times they appear ) i.e - 13 13 13 33 33 87 87
Job3
We need 2 o/p fileo/p1 --> Contains all values once each i.e - 22 95 37 78 29 12 21 32 13 33 87
o/p2 --> Contains remaining values - 13 13 33 87
No comments :
Post a Comment