Moderator: Moderators
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;
}
}
}
if ( Line1 == Line2 )
{
++Count;
Up;
Del_Line; // More information can be found on Del_Line on page 220 of the CMac Users Guide
}
This is not a test.
This is not a test 0.
This is a test.
This is a test.
This is not a test 1.
This is not a test 2.
This is not a test 3.
This is not a test 4.
This is a test.
This is not a test 5.
This is not a test 6.
This is not a test 7.
This is not a test 8.
This is a test.
)
deleyd wrote:I just released my EDX 3.0 package which includes EDX NWS Sort. You can selectas well as do an ordinary sort with multiple keys mixed ascending/descending.
- Mark Lines with Duplicate Keys
- Weed Out Duplicate Keys
- Delete ALL Lines with Duplicate Keys
- Keep ONLY the Lines with Duplicate Keys
- Summary Sort: Keep Keys and counts only
The EDX 3.0 package is at http://www.multieditsoftware.com/forums/viewtopic.php?p=1877#1877
(EDX NWS Sort is a major overhaul of NWS Sort submitted by Bret Sutton)
Users browsing this forum: No registered users and 1 guest