• Login
Community
  • Login

How to show/highlight duplicate lines?

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
4 Posts 4 Posters 19.6k 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.
  • D
    Dark Corner
    last edited by May 8, 2021, 9:37 AM

    I have a file with tens of thousands of lines, many of which are duplicated.
    I wish I could highlight them and then remove them.
    I cannot sort the lines because they contain information that cannot be moved.
    The Remove Duplicate Lines plugin seems to work fine, but before removing them I would like to highlight them for a prior check.
    How can I do?
    Thanks in advance.

    A 1 Reply Last reply May 8, 2021, 11:21 AM Reply Quote 0
    • A
      Alan Kilborn @Dark Corner
      last edited by May 8, 2021, 11:21 AM

      @Dark-Corner said in How to show/highlight duplicate lines?:

      The Remove Duplicate Lines plugin seems to work fine,

      First, I don’t know that this plugin is necessary with current Notepad++.
      Since recently, Notepad++ supports this function natively:

      7ab61134-3187-4bce-8e8c-d695e6a87cf5-image.png

      Second, what I would do if I needed what you need, would be to make a copy of the original file, and remove the duplicates from the second file. Then I’d use a file compare utility to generate a difference view between the files.

      Notepad++ has a Compare plugin, but, because I have an external compare utility, I’ve never really tried the plugin, so I don’t know if it could do what I’m talking about – presume so…perhaps I will now go find out…

      (goes away…)

      (…comes back)

      Yes, the Compare plugin works nicely for such purpose; demo:

      00a7ed71-ea65-4126-a2f5-6797c85f16e1-image.png

      R 1 Reply Last reply May 8, 2021, 6:54 PM Reply Quote 3
      • R
        Ramanand Jhingade @Alan Kilborn
        last edited by May 8, 2021, 6:54 PM

        @Alan-Kilborn How to find and then how to add this plug-in to Notepad++?

        P 1 Reply Last reply May 8, 2021, 7:20 PM Reply Quote 0
        • P
          PeterJones @Ramanand Jhingade
          last edited by May 8, 2021, 7:20 PM

          @Ramanand-Jhingade ,

          Plugins > Plugins Admin
          Click the box for Compare Plugin
          Click Install

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