This Notepad++ has got some serious power. My requirement was to process the log files and had to remove the duplicate lines + some other unwanted calls (css, js, images etc). I goggled some sites and here is the output.
I sorted the file first (you can opt for removing the unwanted lines first).
TextFX -> TextFXTools -> mark sort and sort output only UNIQUE (can also try other sorting options given).
Select lines to be removed:
Ctrl + F (search) -> Select Mark Tab
Now here select “Bookmark line” select box and fill the “Find what” box and click “Mark All” button. You can also use Regular expression to make some advanced marking. For example I had .jsp and .js as the end of many of the lines. I just wanted to remove .js from the file, so I used regular expression .js$ and it did the trick.
Remove selected lines:
Now that you have selected the lines that you want to remove, it is time to remove them. And most simplest of them Search -> Bookmark -> Remove bookmarked lines. That’s it, all the selected lines are gone.
I like Notepad++ as it is packed with many powerful utilities.