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