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