How to delete duplicate URLs (Web bookmarks) separated by a tab within a text file?
-
I’ve exported a text file of my Google Chrome bookmarks and it has many duplicate URLs in it. I want to easily and safely delete every duplicate URL and keep only one version of it in the file. I also want to compare the content of text file to another (my old bookmarks) text file looking for missing or additional lines in them.
How can I achieve these goals?
Thanks in advance.
-
For deleting duplicates, search this forum for “delete duplicates” (specifically, https://notepad-plus-plus.org/community/topic/14835/remove-duplicate-lines-from-unsorted-keeping-first shows a good regex for deleting duplicate lines.
For comparing differences between two files, I use the Compare Plugin (it can be found in the Plugin Manager… or, if you have a version of NPP that didn’t come with the Plugin Manager, you can go to https://github.com/jsleroy/compare-plugin to grab a copy of the DLL… Hmm, actually, I am not seeing a compiled version of ComparePlugin.dll in either of their github repos or the release zipfile – maybe I’m just blind. To make it easy: if you don’t have Plugin Manager, follow the instructions at https://bruderste.in/npp/pm/#install to get the Plugin Manager, and then use that to install the Compare Plugin.
-
Thank you, PeterJones.
I have the latest version of Notepad++ v7.5.4 (64-bit). I did search the forum but I wasn’t successful to install the TextFX plugin.
As for comparing, I’ll follow your suggestion and will let you know how was the result. -
For the compare plugin see: https://github.com/pnedev/compare-plugin/releases