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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login