Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

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

    Help wanted · · · – – – · · ·
    3
    3
    302
    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 singh
      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 Haymes
        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

        Ekopalypse 1 Reply Last reply Reply Quote 0
        • Ekopalypse
          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
          Copyright © 2014 NodeBB Forums | Contributors