From 56e95854282d2d93e6071cb03edb56ecebe359f9 Mon Sep 17 00:00:00 2001 From: Salomon Popp Date: Sat, 15 Jan 2022 22:30:02 +0100 Subject: [PATCH] chore(subdiff): remove useless cat (#119) --- subdiff.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 subdiff.sh diff --git a/subdiff.sh b/subdiff.sh old mode 100644 new mode 100755 index fb59a6d..ef46bca --- a/subdiff.sh +++ b/subdiff.sh @@ -7,7 +7,7 @@ if [ ! -s "$1" ] || [ ! -s "$2" ] || [ "$1" == "$2" ]; then fi _read_file() { - cat "$1" | rg '[^\d]|^\s*$' + rg '[^\d]|^\s*$' "$1" } diff -u <(_read_file "$1") <(_read_file "$2") | delta -s --wrap-max-lines unlimited