in reply to Re^2: make a search pattern and remove duplicate from the file
in thread make a search pattern and remove duplicate from the file

Your comment propagates the OP's usage of the word "unique" - and that causes confusion because your implementation reports the "first" usage of the tuple, which may not necessarily be a "unique" occurrence.

In order to find "unique", you will need to do that after all records have been ingested, and post-process, as my code does.

Anyway - this only illustrates non-specific specifications - and these nits are not worth picking.

Cheers.

                Memory fault   --   brain fried

  • Comment on Re^3: make a search pattern and remove duplicate from the file

Replies are listed 'Best First'.
Re^4: make a search pattern and remove duplicate from the file
by jimpudar (Pilgrim) on May 12, 2018 at 15:30 UTC

    Very good point, I didn't really think about the meaning of "unique" but just tried to make sense of the desired output.

    Best,

    Jim