serhii.net

In the middle of the desert you can say anything you want

05 Aug 2020

Day 583

Diff character-level differences highlights

command line - Using ‘diff’ (or anything else) to get character-level diff between text files - Stack Overflow gives this one nice string: git diff --word-diff=color --word-diff-regex=. file1 file2 which gives red/green characters for deletions/additions. Also, chaining greps also works nicely with grep -o which passes only the text of the actual match. Grep doesn’t support capturing groups.

Nel mezzo del deserto posso dire tutto quello che voglio.