From a5abae53a8be58f1b4e19d69d75350b79216f252 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Fri, 29 Oct 2021 23:14:33 +0200 Subject: Use grep(1) instead of the non-POSIX squash(1) --- 2015/12/puzzle-2.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '2015/12/puzzle-2.sh') diff --git a/2015/12/puzzle-2.sh b/2015/12/puzzle-2.sh index e97fc8a..b1e649c 100755 --- a/2015/12/puzzle-2.sh +++ b/2015/12/puzzle-2.sh @@ -2,6 +2,6 @@ jq 'walk(if type == "object" then del(select(.[] == "red")) end)' input \ | tr -c '\-0-9' '\n' \ - | squash \ + | grep . \ | paste -sd+ \ | bc -- cgit v1.2.3