From 6596b48113ced669b206d2e1f1e8ba6edcba88a2 Mon Sep 17 00:00:00 2001 From: Orangerot Date: Sat, 17 Dec 2022 01:16:18 +0100 Subject: adv2022 first 8 days --- 2022/day01/main.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 2022/day01/main.sh (limited to '2022/day01/main.sh') diff --git a/2022/day01/main.sh b/2022/day01/main.sh new file mode 100755 index 0000000..c5b60a5 --- /dev/null +++ b/2022/day01/main.sh @@ -0,0 +1,3 @@ +#!/bin/sh +paste -sd+ /dev/stdin | sed 's/++/\n/g' | bc | sort -n +# ./main.sh < input2.txt | tail -3 | paste -sd+ - | bc -- cgit v1.2.3