diff2html is a bash 3.2 script that uses the output from diff(1) to create an html file with color comparison of file1 to file2. The html file (optionally) formats using CSS. Hyperlinks are provided to jump to the changed lines.
Be the first to post a text review of diff2html. Rate and review a project by clicking thumbs up or thumbs down in the right column.
This release is mainly for speed improvements. diff2html now uses binary searches of the add/change/delete trees for nearly 2 orders of magnitude of performance enhancement on larger files. A few bug fixes are also included.
This release is mainly for speed improvements. diff2html now uses binary searches of the add/change/delete trees for nearly 2 orders of magnitude of performance enhancement on larger files. A few bug fixes are also included.
This release is pretty stable for use in automated projects. I am using it with psql (from postgresql) to compare schemas across databases. It now also includes an example of using regex in bash case statements, as well as some logic improvements and bug fixes.
Vast improvements to parsing the diff using regex instead of bash string parsing, bug fixes to the line counts during output, several other small performance improvements, and general cleanup.
This is the first release of a bash utility to compare 2 files and show the results in HTML. I did this as an exercise in string manipulation in bash. It makes extensive use of very advanced bash features including arrays, numeric and string expansion, redirection, command substitution, regex matching with grouping and many other techniques. This is a useful utility, and a decent reference work for bash scripting.
This is the first release of a bash utility to compare 2 files and show the results in HTML. I did this as an exercise in string manipulation in bash. It makes extensive use of very advanced bash features including arrays, numeric and string expansion, redirection, command substitution, regex matching with grouping and many other techniques. This is a useful utility, and a decent reference work for bash scripting.
Be the first person to add a text review.
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use
Thanks for your rating!
Would you also like to write a review?
Thanks for your review!
Get credit for your review by logging in via OpenID. Click your account provider: