From: Brett Parker Date: Fri, 3 Dec 2021 10:07:18 +0000 (+0000) Subject: Day 1 X-Git-Url: https://git.sommitrealweird.co.uk/advent-of-code-2021.git/commitdiff_plain/69b45c947e9cdf6a41bf54ca8f7fe50b8c608bcc Day 1 --- 69b45c947e9cdf6a41bf54ca8f7fe50b8c608bcc 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 $(