How to delete a duplicate line (all instances)
Posted: Tue Jul 29, 2008 8:39 am
Hi,
I have a file which looks like as below:
A12345
A123
B23456
A12345
B23456
A2345
A123456
A12345
B23456
In the above file, A12345 & B23456 have multiple instances. I want to remove a line if one or more duplicates exist for the line (including the duplicates) i.e. delete all instances of a line if a duplicate line is found.
The expected result is as below:
A123
A2345
A123456
(Please note that the expected result does not have any instance of "A12345" or "B23456". )
Please let me know if it is possible through Macros? If yes, please suggest me the detailed steps.
Thanks & regards,
Panki
I have a file which looks like as below:
A12345
A123
B23456
A12345
B23456
A2345
A123456
A12345
B23456
In the above file, A12345 & B23456 have multiple instances. I want to remove a line if one or more duplicates exist for the line (including the duplicates) i.e. delete all instances of a line if a duplicate line is found.
The expected result is as below:
A123
A2345
A123456
(Please note that the expected result does not have any instance of "A12345" or "B23456". )
Please let me know if it is possible through Macros? If yes, please suggest me the detailed steps.
Thanks & regards,
Panki