Reply To: Find Duplicates and Delete

Product Compare Forums Multi-Edit User Created Macros Find Duplicates and Delete Reply To: Find Duplicates and Delete

#5797
EEAnderson
Participant

Interestingly, I found the following macro on the TWiki site for ME

[url:14vq70ro]http://www.multieditsoftware.com/twiki/pub/Main/UserScriptLibrary/dups.s[/url:14vq70ro]

It appears to have been written by Andy Colson.

[code:14vq70ro]
void removedups()
{
int start = c_line;

while (true)
{
str s = get_line();
down;
while (Find_Text(s, 0, 0))
{
del_line;
}
start = start + 1;
goto_line(start);
if (at_eof) {
break;
}
}
}
[/code:14vq70ro]