The ability to easily remove duplicate lines is a function that required a macro command on Kedit & Xedit. Basically you start at the bottom of the file and compare the line with the one above it, if it is equal you remove the current line and perform the check again until you reach the top line of the file. It is not rocket science but it sure is time consuming if you don't have this functionality. I realize that you could easily write a script to do this but there are so many times that I am doing a onetime data gather and need the ability to easily remove the duplicates. I still use Kedit today just for those times that I need to do this.
This is not a 'programming language' issue it is a data gathering and editing issue, it is safe to say that this function could have a devastating effect on an unstructured script file (say if it removed duplicate lines of 'end if'). But when you have a file of xx,000 email addresses that you have just sorted and need to eliminate the duplicates it is sure nice to have.
Remove duplicate lines in a data file
Forum rules
Do not post any licensing information in this forum.
Do not post any licensing information in this forum.
- phil.braniff
- Posts: 6
- Last visit: Tue Apr 22, 2014 6:46 am
- Alexander Riedel
- Posts: 8489
- Last visit: Thu Apr 18, 2024 9:59 am
- Been upvoted: 37 times
Remove duplicate lines in a data file
Ok, we have a list of wished for editing functions. I'll add it to that and see what can be done.
Alex
Alex
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.