From 55e10d8287df8721a325d42761c9a04823c0b9db Mon Sep 17 00:00:00 2001 From: Adam Warner Date: Sun, 28 Jan 2018 00:50:15 +0000 Subject: [PATCH] replace another grep -F as pointed out by @StarPicard Signed-off-by: Adam Warner --- gravity.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gravity.sh b/gravity.sh index 536cad27..d83d271a 100755 --- a/gravity.sh +++ b/gravity.sh @@ -330,7 +330,7 @@ gravity_ParseFileIntoDomains() { }' "${source}" > "${destination}.exceptionsFile.tmp" # Remove exceptions - grep -F -x -v -f "${destination}.exceptionsFile.tmp" "${destination}" > "${source}" + comm -23 "${destination}" <(sort "${destination}.exceptionsFile.tmp") > "${source}" mv "${source}" "${destination}" fi