tmkfile: add part 2 solution - aoc22 - advent of code 2022 solutions | |
git clone git://src.adamsgaard.dk/aoc22 | |
Log | |
Files | |
Refs | |
README | |
--- | |
commit 079cc70e5d24990776d1ee55e1a53e23dfecd8a6 | |
parent 69d3d6434f85d51806a303cdd1f942cd55d47a55 | |
Author: Anders Damsgaard <[email protected]> | |
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(-) | |
--- | |
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 to… | |
+ | |
+\ No newline at end of file |