3 Comments

  1. [md]Not *exactly* what you’re asking for, but you could pipe plain `diff` output through `riff`:

    “`
    diff a.txt b.txt | riff
    “`

    Riff will highlight what words were added / removed in the diff, which might be exactly what you want. Riff also integrates with `git` and pages its result just like `git diff`.

    Get it here: .

    Disclaimer: I’m the `riff` author.

  2. [md]Thanks for this! I executed and added this line to my `~/.bashrc`
    “`
    function difff { wdiff “$1” “$2” | colordiff | less -r; }
    “`
    Now I can do: `difff file1 file2`[/md]

Leave a Reply

Your email address will not be published. Required fields are marked *