From f77fa4ec82ab82ff7937fc664752bce80144a8f1 Mon Sep 17 00:00:00 2001 From: Brett Parker Date: Sun, 6 Dec 2020 10:38:38 +0000 Subject: [PATCH] Day 5 - for a change, bash version first! --- day6/get_yes_counts.sh | 48 + day6/get_yes_counts_2.sh | 59 ++ day6/input.txt | 2061 ++++++++++++++++++++++++++++++++++++++ day6/summary.txt | 84 ++ 4 files changed, 2252 insertions(+) create mode 100644 day6/get_yes_counts.sh create mode 100644 day6/get_yes_counts_2.sh create mode 100644 day6/input.txt create mode 100644 day6/summary.txt diff --git a/day6/get_yes_counts.sh b/day6/get_yes_counts.sh new file mode 100644 index 0000000..b91205c --- /dev/null +++ b/day6/get_yes_counts.sh @@ -0,0 +1,48 @@ +#!/bin/bash + +set -u +set -e + +declare -a group_questions + +parse_file() { + exec 3