CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

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

 



jeffersno1
Novice

Mar 15, 2018, 6:02 AM

Post #1 of 3 (6453 views)
Compare 2 large files Can't Post

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

Post #2 of 3 (6452 views)
Re: [jeffersno1] Compare 2 large files [In reply to] Can't Post

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


bulrush
User

Nov 7, 2018, 3:04 AM

Post #3 of 3 (178 views)
Re: [jeffersno1] Compare 2 large files [In reply to] Can't Post

Look for a command line program called "diff". There should be a version out there for all major platforms, like Linux and Windows command line.
-----

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives