Search and merge the copy onto another file while keeping the line row.
-
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
BBBBBBBBBFile 2:
KKKKKKKKKK
Line.18<AAAAAAAA>KKKKKKKKKKK
Line.20<AAAAAAAA>[Y] KKKKKKKKK
Line.27<AAAAAAAA>[O] KKKKKKKKKfrom 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
KKKKKKKKKSo how can I do it? It’s my first time with Notepad++ The only thing I got to do was searching .*[X]
-
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
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