#diff #watch

app watchdiff

A small utility to diff watch output

5 releases

0.2.2 Mar 2, 2023
0.2.1 Dec 29, 2021
0.2.0 Dec 28, 2021
0.1.1 Dec 23, 2021
0.1.0 Dec 23, 2021

#252 in Command line utilities

46 downloads per month


121 lines


Watch output and trigger on diff!

Ever want to have watch output only tell you what changed? And not only what, but when? Now you can! Enter: watchdiff.

Watchdiff will monitor command output and will output in the terminal whenever a difference was detected in the output of the running program.


    watchdiff [FLAGS] [OPTIONS] [command]...

    -h, --help         Prints help information
    -p, --permament    Compare to the initial output (permament mode)
    -V, --version      Prints version information

    -d, --delay <delay>    Delay between runs in seconds [default: 2]

    <command>...    Command to run

To run a command with arguments use -- to escape watchdiffs argument parser, like so:

watchdiff -d 5 -- ls -alh


If you have Rust and Cargo installed, Watchdiff can be quickly compiled and installed by running the following command:

cargo install watchdiff

This will install Watchdiff to ~/.cargo/bin/watchdiff, which might need to be added to your shell's PATH variable.

Example output

The Watchdiff output is colorized such that red lines with a - prepended were removed, and green lines with a + were added.

diff output


~72K SLoC