From ecf087c7b8ea85330b651ba1114493217a22de9d Mon Sep 17 00:00:00 2001 From: trimstray Date: Mon, 10 Jun 2019 11:57:50 +0200 Subject: [PATCH] new one-liner for 'diff' - signed-off-by: trimstray --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 23b08a3..77f190d 100644 --- a/README.md +++ b/README.md @@ -1822,6 +1822,12 @@ ___ diff <(cd directory1 && find | sort) <(cd directory2 && find | sort) ``` +###### Compare output of two commands + +```bash +diff <(cat /etc/passwd) <(cut -f2 /etc/passwd) +``` + ___ ##### Tool: [tail](https://en.wikipedia.org/wiki/Tail_(Unix))