Community
    • Login

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

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 3 Posters 920 Views 2 Watching
    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 Offline
      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 Offline
        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 Offline
          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

          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
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors