Compare files - ignore last row #1659
Replies: 4 comments 2 replies
-
Unfortunately, WinMerge currently does not have the ability to ignore last-line-only differences. However, if the last line always contains a particular string and no other line contains that string, you can ignore the difference in the last line by specifying the string as a line filter. . The following is an example with a line filter that assumes that the string "Prophet Table Editor" always appears in the last line. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the help - I can handle the regular expressions now. My next problem is that WinMerge recognizes some files as binary files and displays them as different. When I want to display the differences, the info comes up that they are identical. |
Beta Was this translation helpful? Give feedback.
-
Unfortunately, the line filters are not applied to files detected as binary files. Although this is a much more complicated and less preferred method, you can combine multiple Unpacker plug-ins to compare files with the last line stripped off, as shown below. You can then apply this combination of plug-ins to multiple pairs of files in the folder comparison window and re-compare them. 1.
|
Beta Was this translation helpful? Give feedback.
-
I just had some time again to deal with the problem. Unfortunately, the proposed solution does not yet lead to the goal. I have attached two files that are identical except for the last line. When I compare them directly with the suggested line filter, they are shown to me as identical. If they are in different folders, I get the result "Files are different". |
Beta Was this translation helpful? Give feedback.
-
I want to compare files, ignoring the last line, since it is always different and I am only interested in differences in the range above it. This probably works with the line filter and regular expressions. Unfortunately I don't know how to do this and hope for your help.
I have attached a screenshot of the difference in the last line, which I would like to ignore.
Beta Was this translation helpful? Give feedback.
All reactions