Diff tool to align shuffled lines
Posted
by Ken Bloom
on Stack Overflow
See other posts from Stack Overflow
or by Ken Bloom
Published on 2010-03-17T02:23:16Z
Indexed on
2010/03/17
2:31 UTC
Read the original article
Hit count: 507
Suppose I have two documents that are identical except the lines are shuffled. Is there a tool that can show me which lines in document A correspond to which lines on document B by drawing lines to connect them (kinda like Cairo does for machine translation word alignments)?
What if the files have some level of differing lines (I don't want to figure out which lines are similar to each other -- if there isn't an exact match for a line, then that line has no match.)
Note: I am not looking to sort the files and compare them, rather I am looking to get a visualization of how far out of order the files are relative to each other, and which particular regions tend to move together, and which tend to be shuffled.
© Stack Overflow or respective owner