Remove Duplicate Lines
Is this possible to remove duplicate lines in a text file/list with Notepad++ ?
To change this:
aaaaaaaaaaaa bbbbbbbbbbbb aaaaaaaaaaaa aaaaaaaaaaaa cccccccccccc dddddddddddd eeeeeeeeeeee ffffffffffff cccccccccccc gggggggggggg hhhhhhhhhhhh gggggggggggg gggggggggggg cccccccccccc
aaaaaaaaaaaa bbbbbbbbbbbb cccccccccccc dddddddddddd eeeeeeeeeeee ffffffffffff gggggggggggg hhhhhhhhhhhh
Maybe. Key question: Can your lines be sorted without losing meaning?
Sorting is not important for my case.
Then your best option is to sort the lines using one of the Sort commands, then use the Remove Consecutive Duplicate Lines command. All are on the Edit > Line Operations menu.
Yes, Thanks for the info.
rinku singh last edited by
Use Remove Duplicate Lines plugin
Prahlad-Makwana4145 last edited by
Based on your problem please follow steps to remove duplicate lines with notepad++.
Note :- Notepad++ is a feature rich text editor but does not have an integrated feature to remove duplicate lines, however, the option can be added in via the external plugin system Notepad++ uses. Although some are already included the TextFX plugin is not installed by default and needs to be added manually.
Step 1:- Go to the Plugins menu.
Step 2:- In plugins menu select Plugin Manager > Show Plugin Manager.
Step 3:- Find the TextFX Characters plugin from the list.
Step 4:- Check the box, click Install and restart the program.
Step 5:- After installation, select all the text (Ctrl+A), go to TextFX > TextFX Tools and select the option +Sort outputs only UNIQUE (at column) lines.
Step 6:- Go back to the same TextFX Tools menu and either click on Sort lines case sensitive (at column) or Sort lines case insensitive (at column). This will remove the duplicate lines.
I hope above information will be useful for you.
I would not advise people to use the TextFX plugin as it is old and support is questionable.