Hi
Is there any possibility to remove duplicated rows in Notepad++ to leave only single line occurrence?
Hi
Is there any possibility to remove duplicated rows in Notepad++ to leave only single line occurrence?
If you don't care about row order (which I don't think you do), then you can use a Linux/FreeBSD/MacOSX/Cygwin box and do:
$ cat yourfile | sort | uniq > yourfile_nodups
Then open the file again in Notepad++.
Does this do what you want?
Notepad++ can do this, provided you wanted to sort by line, and remove the duplicate lines at the same time.
The check boxes and buttons required to do this are located in the menu under: TextFX-->TextFX Tools
Make sure "sort outputs only unique..." is checked. Then select a block of text (ctrl-a to select the entire document). Then click "sort lines case sensitive" or "sort lines case insensitive"
http://answers.yahoo.com/question/index?qid=20080522091139AAoVO8m (2nd answer)
if the rows are immediately after each other then you can use a regex replace
Search Pattern: ^(.*\n)\1
Replace with: \1