S
S
susnake2019-01-31 06:29:56
vim
susnake, 2019-01-31 06:29:56

How to move lines from one file to exactly the same position in another file?

There are 2 files, one has text with something like this:

# @generated
#: ui/users/ViewUser.js:299
msgid "The user did not yet complete the activation. The activation link emailed to the user, expires in 48 hours. If needed, you can resend an invitation."
msgid "Użytkownik nie ukończył jeszcze aktywacji. Link aktywacyjny wysłany mailem do użytkownika wygasa w ciągu 48 godzin. Jeśli jest taka potrzeba możez ponownie wysłać zaproszenie."

And in the second file the following test:
# @generated
#: ui/users/ViewUser.js:299
msgid "The user did not yet complete the activation. The activation link emailed to the user, expires in 48 hours. If needed, you can resend an invitation.
msgstr "El usuario aún no ha completado la activación." El enlace de activación enviado por correo electrónico al usuario expira dentro de las 48 horas y la invitación puede reenviarse si es necesario."

How can I move (copy) the line containing msgstr from the second file to the first? Line numbering is the same, i.e. if @generated from the first file is on line 125, then @generated from the second file is on line 125. Plus, those lines that need to be transferred always begin with the word msgstr.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
susnake, 2019-01-31
@susnake

I solved the problem using excel .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question