Search and merge the copy onto another file while keeping the line row.



  • I have a file:

    • A - Both files have this text in common.
    • B/K - This Text is Different for each file.
    • X - Is between [] and has always the same value

    File 1:




    File 2:


    Line.18<AAAAAAAA>KKKKKKKKKKK
    Line.20<AAAAAAAA>[Y] KKKKKKKKK
    Line.27<AAAAAAAA>[O] KKKKKKKKK

    File 2:


    Line.18<AAAAAAAA>[X]KKKKKKKKKK

    So how can I do it? It’s my first time with Notepad++ The only thing I got to do was searching .*[X]



  • @fullpocoyo-as

    If these are random lines than I don’t see how this could be achieved in a simple way using
    notepad++ builtin functions. I would propose to use a scripting plugin like
    python script or lua script or whatever else is out there and able to get access to the
    content of the document.

    Cheers
    Claudia


Log in to reply