From 69b45c947e9cdf6a41bf54ca8f7fe50b8c608bcc Mon Sep 17 00:00:00 2001 From: Brett Parker Date: Fri, 3 Dec 2021 10:07:18 +0000 Subject: [PATCH] Day 1 --- day01/count.sh | 57 ++ day01/input.txt | 2000 +++++++++++++++++++++++++++++++++++++++++++++++ day01/task.txt | 87 +++ 3 files changed, 2144 insertions(+) create mode 100644 day01/count.sh create mode 100644 day01/input.txt create mode 100644 day01/task.txt diff --git a/day01/count.sh b/day01/count.sh new file mode 100644 index 0000000..990433d --- /dev/null +++ b/day01/count.sh @@ -0,0 +1,57 @@ +#!/bin/bash + +check=0 +cur_number=0 +prev_number=0 +count=0 +cur_line=0 +cur_window=1 + +declare -a windows + +for num in $(