Topic: Needs SORT.VDM enhancement (1 of 2), Read 64 times
Conf: Wildfile, Other macros
From: Peter Rejto
Date: Saturday, June 10, 2000 12:23 AM

Hello fellow Vedit Users:

I started to use the SORT.VDM macro. Now I would like to have an enhancement. Specifically, I would like to eliminate duplicates from my lists.

I have a hunch that if I understood the the
SORT.VDM macro, then I could make such an adjustment. However, I do not understand how
this macro works.

Thanks in advance.
-peter.

 


Topic: Needs SORT.VDM enhancement (2 of 2), Read 72 times
Conf: Wildfile, Other macros
From: Fritz Heberlein
Date: Saturday, June 10, 2000 03:13 AM

>Specifically, I would like to
>eliminate duplicates from my
>lists.

Peter,
you could combine sort.vdm with a regex,
that removes duplicate lines, as it is
done in e-email.vdm:

Sort(0,File_Size) //Sort entire file

BOF
repeat(ALL) { //Search & delete duplicate lines

Search("^{.*}\N\1$",REGEXP+MAX+ERRBREAK) Del_line()

Fritz