This command-line tool will help people who want to compare 2 csv-like files, and get a detailed report on which rows and fields differ between both files. An awk-based version and Perl Version is currently available.
Be the first to post a text review of CompareFiles. Rate and review a project by clicking thumbs up or thumbs down in the right column.
The perl version of CompareFiles is available in the download section.
1.4 - 28/02/2008 - Made each line's first colons same color as remaining of line. 1.3 - A few comments and cleaning on code - Fix : parfile parse would take AllLines even if set to "Off" - Fix : parfile parse would take AllFields even if set to "Off" - Fix : parfile parse would take StatsOnly even if set to "Off" - Fix : Ignore fields wouldn't work when uppercase column names - Added the number of equal lines to the stats 1.2 - Fix : files with different list of fields were not compared properly. 1.1 - Added the additional separate stats report - Keyfields option is now case insensitive, as well as Ignored fields. - Added a "stats string" which resumes in one line the diiferences counters. 1.0 Modified Amit Surana's latest version in order to get closer to the nawk version and to the spec. The modif include : - replaced "switch" by "if ... elif" for more portability. - grouped the lost/new/diff lines detection so that they are reported in the same order as the key - added the ParFile system - sorting now relies on perl functions, not the unix "sort". More portable. - modified the key-system : key fields are now glued in ONE superkeyfield which is used for sorting. Should give better performance. - added the separator to the comparison info in the report - added timestamped log message - Reports are XHTML 1.0 Transitional compliant - stored all caption messages into variables, for easier translation - modified default caption messages to be the same as the nawk version - solved perl warnings
Be the first person to add a text review.
Copyright © 2009 Geeknet, Inc. All rights reserved. Terms of Use
Thanks for your rating!
Would you also like to write a review?