diff や colordiff は、通常、2 つのファイルの差分を表示するコマンドだが、他のコマンドの実行結果と比較することもできる。
diff
colordiff
2 つのファイルの差分比較
colordiff -u file1 file2
ファイルとコマンドの実行結果の差分比較
colordiff -u file <(command)
2 つのコマンドの実行結果の差分比較
colordiff -u <(command1) <(command2)