Diff Two Command Outputs
From Leo's Notes
This page was last edited on 29 April 2013, at 08:09.
To run diff on two command outputs, such as two ls's, run:
diff <(cd directory1; ls) <(cd directory2; ls)
This is assuming you are using bash, or a shell that can handle sub shells and pipes similar to bash.