Community
    • Login

    'Edit > Remove Consecutive Duplicate Lines' explain me hows that work actually?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 3 Posters 597 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.
    • rinku singhR
      rinku singh
      last edited by

      Notepad++ v7.6.4 (32-bit)
      Build time : Mar 6 2019 - 02:52:22
      Path : C:\Program Files\Notepad++\notepad++.exe
      Admin mode : OFF
      Local Conf mode : OFF
      OS : Windows 7 (32-bit)
      Plugins : Autosave2.dll Console_output.dll huge_file_tool.dll mimeTools.dll NppConverter.dll NppExport.dll NppSaveAsAdmin.dll Remove_dup_lines.dll

      link text

      1 Reply Last reply Reply Quote 0
      • Steven HaymesS
        Steven Haymes
        last edited by

        Before:

        duplicate line
        duplicate line
        not a duplicate line
        not another duplicate line

        After:

        not a duplicate line
        not another duplicate line

        EkopalypseE 1 Reply Last reply Reply Quote 0
        • EkopalypseE
          Ekopalypse @Steven Haymes
          last edited by

          @Steven-Haymes

          not exactly, you missed one duplicate line ;-)

          @gurikbal-singh

          it only works on consecutive lines, meaning
          if you have something like

          a
          a
          b
          b
          c
          c
          

          you get

          a
          b
          c
          

          BUT if there are other lines in between like empty lines or different lines
          then it doesn’t do anything. It basically checks always the previous line with the current line and if those are the same it will delete the current line.

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