Home: Perl Programming Help: Intermediate:
Compare 2 large files



jeffersno1
Novice

Mar 15, 2018, 6:02 AM


Views: 4445
Compare 2 large files

Hello all,

We've just migrated to a new product at work and we are experiencing issues where our test server is way out of sync with live. Its a pain to keep track of changes. . .

Instead of brick'in the test server and installing the live config I would like add to my web site where perl runs in the back ground comparing the config on a daily basis or via a button, and outputs the differences.

I might be overcooking this and there maybe a config management tool already available but i'm yet to find one.

Does anyone know if there is a config management tool that keeps track of changes ? is web based and supports config files with 250k lines in?
A tool where you can have separate files in test (not yet in live) and the tool can tell you its release 10 or something.

Any suggestions gratefully received

Many thanks

Jeffers


FishMonger
Veteran / Moderator

Mar 15, 2018, 7:05 AM


Views: 4444
Re: [jeffersno1] Compare 2 large files

Are you looking for a versioning tool such as Git?
https://git-scm.com/

Or do you just want to do a diff on 2 files?
http://man7.org/linux/man-pages/man1/diff.1.html
http://search.cpan.org/~bdfoy/PerlPowerTools-1.012/bin/diff