diff --git a/d01/part1.awk b/d01/part1.awk index f838e55..aa679e1 100644 --- a/d01/part1.awk +++ b/d01/part1.awk @@ -2,3 +2,4 @@ # awk -f part1.awk < input | sort -n | tail -n 3 | sum0 NF == 0 { print a; a = 0 } { a+=$1 } +END { print a; }