PDA

View Full Version : compare one file to many


31-Mar-2004, 02:33 PM
I would like to construct a script comparing all files in a folder to one another and producing a report showing differences. Would there be another way of doing this other than a series of "command lines", e.g.
bc2 @c:\params.txt c:\file1.txt c:\file2.txt
bc2 @c:\params.txt c:\file1.txt c:\file3.txt
bc2 @c:\params.txt c:\file1.txt c:\file4.txt
bc2 @c:\params.txt c:\file2.txt c:\file3.txt
bc2 @c:\params.txt c:\file2.txt c:\file4.txt
bc2 @c:\params.txt c:\file3.txt c:\file4.txt

Chris
31-Mar-2004, 03:00 PM
I don't think there is a built in way to do this other than the series of command lines.

You might be able to call BC from another scripting language (Perl, or whatever your favorite scripting language is) in a way that will automate things better.