Consider the file tbl.txt
(1.5 million lines), built like:
Num1 ; Num2 ; 'Value' ; 'Attribute'
So tbl.txt
looks like:
63 ; 193 ; 'Green' ; 'Color' 152 ; 162 ; 'Tall' ; 'Size' 230 ; 164 ; '130lbs' ; 'Weight' 249 ; 175 ; 'Green' ; 'Color' *duplicate on 'Value' and 'Attribute'* 420 ; 178 ; '8' ; 'Shoesize' 438 ; 172 ; 'Tall' ; 'Size' *duplicate on 'Value' and 'Attribute'*
How can i keept the first unique line on 'Value'
and 'Attribute'
and delete following duplicate lines on 'Value'
and 'Attribute'
?
The result should look like:
63 ; 193 ; 'Green' ; 'Color' 152 ; 162 ; 'Tall' ; 'Size' 230 ; 164 ; '130lbs' ; 'Weight' 420 ; 178 ; '8' ; 'Shoesize'
Any help is much appreciated.