Community
    • Login

    How to delete duplicate URLs (Web bookmarks) separated by a tab within a text file?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 3 Posters 1.9k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Sepehr ES
      Sepehr E
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones
        last edited by

        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.

        1 Reply Last reply Reply Quote 1
        • Sepehr ES
          Sepehr E
          last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • chcgC
            chcg
            last edited by

            For the compare plugin see: https://github.com/pnedev/compare-plugin/releases

            1 Reply Last reply Reply Quote 1
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors