From 6d0e99b9566d07b45a5f8575d8852afe9d8b06f1 Mon Sep 17 00:00:00 2001 From: adelviscio Date: Sun, 1 Sep 2013 17:48:33 -0400 Subject: [PATCH] Added diff of two processes/commands Wraps output of two commands into separate file handles that diff can compare. --- cheatsheets/diff | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cheatsheets/diff b/cheatsheets/diff index e2024ea..f9f2b3e 100644 --- a/cheatsheets/diff +++ b/cheatsheets/diff @@ -18,3 +18,6 @@ diff -q version1 version2 # To report whether the files are identical: diff -s version1 version2 + +# To diff the output of two commands or scripts: +diff <(command1) <(command2)