From 498e65f525a4aeed9a2dc22c70bab4a1f1848ba9 Mon Sep 17 00:00:00 2001 From: Sameer Rahmani Date: Thu, 22 Feb 2018 12:15:26 +0000 Subject: [PATCH] intersect_files function has been added --- lib/utils.zsh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/utils.zsh b/lib/utils.zsh index 6ff7b0f..c625010 100644 --- a/lib/utils.zsh +++ b/lib/utils.zsh @@ -6,3 +6,7 @@ pid_for() { echo $(lsof -n -i ":$1" | grep LISTEN) } + +intersect_files() { + comm -23 <(cat $1) <(cat $2) +}