DiffUtil - Compare Stuff
This package provides utilites for comparisons of strings, lists and files. The base comparison is a Longest Common Substring algorithm based on J. W. Hunt and M. D. McIlroy, "An algorithm for differential file comparison," Comp. Sci. Tech. Rep. #41, Bell Telephone Laboratories (1976). Available on the Web at the second author's personal site: http://www.cs.dartmouth.edu/~doug/
Compare two files line by line. The return value depends on the -result option, see below.
Compare two lists element by element. The return value depends on the -result option, see below.
Compare two files. The return value is a boolean which is true when equal.
Compare two channel streams. The return value is a boolean which is true when equal.
% DiffUtil::diffFiles $file1 $file2 {{3 2 3 4}}
diff, lcs, longest common substring
Copyright © 2010, Peter Spjuth