tmkfile: add part 2 solution - aoc22 - advent of code 2022 solutions
(HTM) git clone git://src.adamsgaard.dk/aoc22
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) commit 079cc70e5d24990776d1ee55e1a53e23dfecd8a6
(DIR) parent 69d3d6434f85d51806a303cdd1f942cd55d47a55
(HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Fri, 2 Dec 2022 14:38:44 +0000
mkfile: add part 2 solution
Diffstat:
M 1/mkfile | 5 +++++
1 file changed, 5 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/1/mkfile b/1/mkfile
t@@ -1,2 +1,6 @@
run:V: input aoc1
+ echo part 1
./aoc1 <input | sort -n | tail -n 1
+ echo part 2
+ ./aoc1 <input | sort -n | tail -n 3 | awk '{total += $1}; END{print total}'
+
+\ No newline at end of file