Hi, @jak, @peterjones, @pnedev, @phil-pascal and All,
Ah…, OK :! But it’s quite funny, @jak, because it’s exactly what I proposed in my last two posts !!!
Giving the initial contents of your two files :
The
Original Music Collection which contains :
Coldplay yellow
Elton John Rocket man
Beatles abbey road
Beatles Love me do
Beatles hey Jude
Monkees daydream believer
The
New Music file which contains :
Beatles abbey road
Beatles Love me do
Beatles hey Jude
Monkees daydream believer
The move blackberry way
(1) By running a search/ replacement with
regular expressions :
I append, at the very end of the New music file, the contents of the Original Music Collection file, after a line of, at least, 3 equal signs, giving this temporary New music file :
Beatles abbey road
Beatles Love me do
Beatles hey Jude
Monkees daydream believer
The move blackberry way
==========
Coldplay yellow
Elton John Rocket man
Beatles abbey road
Beatles Love me do
Beatles hey Jude
Monkees daydream believer
Now :
Switch to the New Music file
Open the Replace dialog ( Ctrl + H )
Uncheck all box options
SEARCH (?x-is) ^ (.+\R) (?= (?s) .+? ^===+ .+ ^ \1) | (?s) ^ ===.+
REPLACE Leave EMPTY
Tick the Wrap around option
Select the Regular expression search mode ( IMPORTANT )
Click on the Replace All button
=> You should get your expected New Music file, below :
The move blackberry way
Save the modification of the
New Music file
(2) By using the
ComparePlus plugin :
First, use the Plugins > ComparePlus > Diff Visual Filters... option
Check the Hide added/removed lines option and valid this choice with the OK button
Then, use the specific option Plugins > ComparePlus > Find Unique lines
Now, select the New Music file ( IMPORTANT )
Run the Plugins > ComparePlus > Delete all/selected visible lines option
Run the Plugins > ComparePlus > Clear Active Compare option
Finally, save the modifications of the New Music file ( IMPORTANT )
Best Regards,
guy038