• Login
Community
  • Login

I need to line up the lines of text from two files in a certain sequence.

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
3 Posts 3 Posters 167 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.
  • B
    BlackLone Wolf
    last edited by BlackLone Wolf Nov 30, 2020, 11:50 AM Nov 30, 2020, 11:49 AM

    Hello.
    I have two files of text - one in a foreign language and one in a native language.
    Document 1
    a
    a
    a
    Document 2
    1
    1
    1
    1
    I need it like this:
    Final result
    a
    1
    a
    1
    a
    1
    Documents have the same number of lines of text
    Thx for help in advance.

    A A 2 Replies Last reply Nov 30, 2020, 1:29 PM Reply Quote 0
    • A
      Alan Kilborn @BlackLone Wolf
      last edited by Nov 30, 2020, 1:29 PM

      @BlackLone-Wolf

      You could use the column-editor (Alt+c) to prefix incrementing numbers onto the start of each line.

      In doc 1, use odd numbers: 1,3,5… with leading zeros appropriate for your data. In doc 2, use even numbers: 2,4,6…

      Then copy both docs into a new doc, doc 3.

      Sort doc3 using an integer-ascending sort.

      Finally, remove the prefixes you added by column-selecting them and then delete.

      Your final results will then be in doc 3.

      (That was rather brief, so if you need more help than that, post again.)

      1 Reply Last reply Reply Quote 3
      • A
        astrosofista @BlackLone Wolf
        last edited by Nov 30, 2020, 1:45 PM

        Hi @BlackLone-Wolf

        Take a look at this thread, where you will find different ways to deal with this issue.

        Have fun!

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