Is it possible to remove duplicated rows in Notepad++, leaving only a single occurrence of a line?
相关问题
- Fixing Markdown styling in Notepad++
- Notepad++ Regex + python script (addition in the r
- Regex to find double parenthesis using Notepad++
- Remove specific duplicate lines without sorting
- How to delete first blank row in multiple files?
相关文章
- Disabling drag-and-drop of text in Notepad++
- How can I do a non greedy regex query in notepad++
- regular expression to add characters before and af
- Regex to replace spaces with tabs at the start of
- Getting NppExec to understand path of the current
- Creating new shortcut in notepad++
- Catching a PHP variable using double click in Note
- Notepad++ does not highlight css inside HTML file
if the rows are immediately after each other then you can use a regex replace
Search Pattern:
^(.*\r?\n)(\1)+
Replace with:
\1
If you don't care about row order (which I don't think you do), then you can use a Linux/FreeBSD/Mac OS X/Cygwin box and do:
Then open the file again in Notepad++.
You may need a plugin to do this. You can try the command line
cc.ddl
(delete duplicate lines) of ConyEdit. It is a cross-editor plugin for the text editors, including Notepad++.With ConyEdit running in background, follow the steps below:
cc.ddl
at the end of the text.Example
None worked for me.
A solution is:
Replace
with