I have two log files with thousands of lines. After pre-processing, only some lines differ. These remaining lines are either real differences, or shuffled groups of lines.
Unified diffs allow me to see the detailed differences, but it makes manual comparison with eyeballs hard. Side-by-side diffs seems more useful for comparison, but it also adds thousands of unchanged lines. Is there a way to get the advantage of both worlds?
Note, these log files are generated by xscope
which is a program that monitors Xorg protocol data. I am looking for general-purpose tools that can be applied to situations similar to the above, not specialized webserver access log analysis tools for example.
Two example log files are available at http://lekensteyn.nl/files/qemu-sdl-debug/ (log13
and log14
). A pre-processor command can be found in the xscope-filter
file which removes timestamps and other minor details.
diff
have--suppress-common-lines
option? http://pastebin.com/KZrVCNFR – manatwork Jun 12 '13 at 10:46vimdiff
(from the vim package) would serve your needs better: parallel display, colorized, common lines folded. Line numbers can be turned on with:set number
. – manatwork Jun 12 '13 at 11:07kompare
for this purpose. – depquid Jun 12 '13 at 14:18