PDA

View Full Version : Perl script to compare 2 files and show which lines are different


hrp2171
01-22-2004, 08:16 PM
Hi,

I have these 2 registry extracts in 2 separate text files.

I would like to parse both files and output the differences between the files to another file.

Windiff is about useless in this situation. :rolleyes:

If you know where I can find a Perl script to perform that action, I'd appreciate the pointer. Also, if you know of a really good program that can do the task, I'm open for suggestions.

Thanks,

Hector

YUPAPA
01-23-2004, 07:28 AM
If you are running linux, you can just use 'diff' to compare two files. It will output the line numbers and lines that are different.

hrp2171
01-23-2004, 03:53 PM
Doh!

Thanks for the reply. :thumbsup:

It figures that the same type of util in Linux would actually do what is supposed to do. LOL