• Login
Community
  • Login

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

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
2 Posts 2 Posters 1.3k 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.
  • F
    fullpocoyo as
    last edited by Sep 25, 2017, 1:34 AM

    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:

    BBBBBBBBBB

    BBBBBBBBB

    BBBBBBBBB

    BBBBBBBBB

    File 2:

    KKKKKKKKKK

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

    from all the lines that have it in the File 1 and merge the selection with File 2 while keeping the same Line row so it would end up like this:

    File 2:

    KKKKKKKKKK

    Line.18<AAAAAAAA>[X]KKKKKKKKKK
    KKKKKKKKK

    KKKKKKKKK

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

    C 1 Reply Last reply Sep 25, 2017, 11:51 AM Reply Quote 0
    • C
      Claudia Frank @fullpocoyo as
      last edited by Sep 25, 2017, 11:51 AM

      @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

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