Hello,
Anybody know how to count duplicate lines?
I don't want to delete them, just need to know how many.
Count Duplicate Lines
Moderators: AmigoJack, bbadmin, helios, 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.
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.