Comparing files
-
Greetings
I do have real quick questions, hopefully, someone can help me.
I have two files. Looking like this
34234
45435
43534The other one is
43534
12354
98455Is there any possibility of finding matches on these two files no matter what the line is? Like for example, it can find a match cause the number on line 7 of the first file equals the number on line 50 in the other file.
So how to I compare the whole file, not going line per line
-
yes, but not within notepad++ try google “file comparing free software”
-
@Mario-Castro said in Comparing files:
Is there any possibility of finding matches on these two files no matter what the line is? Like for example, it can find a match cause the number on line 7 of the first file equals the number on line 50 in the other file.
So how to I compare the whole file, not going line per line
or you should try find next occurence for a match, notepad probably can do that
-
@Dr-PC-Mac-Linux-Valenciennes-Bruno-DOUTRIAUX search menu then tab search in files
-
@Mario-Castro said in Comparing files:
So how to I compare the whole file, not going line per line
It can be done within Notepad++ although it would involve a number of steps. Like combining the 2 files into one, sorting and removing lines which aren’t duplicated. If you needed to know which line and which file each remaining line came from you’d need to add in additional steps to include that information before combining the files.
So understand all this means the file worked on would need to be a copy of the originals as data is destroyed in the process.
There may be other applications out there which can do the job easily, but we deal with Notepad++ questions here.
Terry
-
If you haven’t tried ComparePlus Notepad++ plugin yet it might help you.
You can use Notepad++ Plugins Admin (from thePlugins
menu) to download the plugin version suitable for your Notepad++ version or you could manually install the plugin.
I won’t go into details here now, just write back if you need help with getting the plugin to work. -
Thanks :)