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



  • 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



  • Before:

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

    After:

    not a duplicate line
    not another duplicate line



  • @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.


Log in to reply