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.5k 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.
    • fullpocoyo asF Offline
      fullpocoyo as
      last edited by

      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]

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC Offline
        Claudia Frank @fullpocoyo as
        last edited by

        @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

        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