I need to line up the lines of text from two files in a certain sequence.
-
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. -
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.)
-
Take a look at this thread, where you will find different ways to deal with this issue.
Have fun!