Count Duplicate Lines

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
Vegarari
Posts: 1
Joined: Mon Sep 19, 2011 5:41 pm

Count Duplicate Lines

Post by Vegarari »

Hello,
Anybody know how to count duplicate lines?
I don't want to delete them, just need to know how many.
Thanks,
Vegarari
User avatar
MudGuard
Posts: 1295
Joined: Sun Mar 02, 2003 10:15 pm
Location: Munich, Germany
Contact:

Post by MudGuard »

Check the number of lines (either go to end of file, or use Alt-Enter) and remember it.

Do a sort with deleting duplicate lines.

Again, note the number of lines, and take the difference to the first number of lines (that's the number you are looking for).

Now do edit - undo (Ctrl-Z) to restore the file.
User avatar
MudGuard
Posts: 1295
Joined: Sun Mar 02, 2003 10:15 pm
Location: Munich, Germany
Contact:

Post by MudGuard »

I just noted something.

New recipe:

1. Do a sort with deleting duplicate lines (Tools - Sort).

2. Have a look at the statusbar, it says how many lines were deleted.

3. Undo (Ctrl-Z).
Post Reply