Step-by-step comparison (ignoring order) using Beyond Compare 3 or 4

I am trying to do a sequential comparison of contents in a file using Beyond Compare 3 or 4. There is a caveat. Lines do not necessarily have the same order in the files. Examples below:

Example 1:

File 1 contents: value1.key=mango value2.key=pear File 2 contents: value2.key=pear value1.key=mango This should say "files identical" on comparison. 

Example 2:

 File 1 contents: value1.key=mango value2.key=pear value3.key=apple File 2 contents: value2.key=pear value3.key=banana value1.key=mango This should report only the following in the comparison: value3.key=apple | value3.key=banana 

Example 3:

 File 1 contents: value1.key=mango value2.key=pear value3.key=apple File 2 contents: value3.key=apple value1.key=mango This should report only the following in the comparison: value2.key=pear 

Can someone tell me if this is possible using Beyond Compare?

+6
source share
1 answer

For those who are interested in:

When comparing files, you can select the file format (from the button on the toolbar β€œformat”), just select β€œsorted”, and you can achieve such a comparison.

+14
source

Source: https://habr.com/ru/post/979701/


All Articles