summary refs log tree commit diff homepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--2022/day01.awk10
1 files changed, 10 insertions, 0 deletions
diff --git a/2022/day01.awk b/2022/day01.awk
new file mode 100644
index 0000000..c81d624
--- /dev/null
+++ b/2022/day01.awk
@@ -0,0 +1,10 @@
+/[[:digit:]]+/ {
+	cals += $1;
+}
+/^$/ {
+	if (cals > max) max = cals;
+	cals = 0;
+}
+END {
+	print max;
+}
9 23:25:36 -0500'>2022-02-19Remove unneeded includes in ui.cJune McEnroe 2022-02-19Reimplement tab completeJune McEnroe 2022-02-19Handle errors from editFn, etc.June McEnroe 2022-02-19Reimplement text macrosJune McEnroe 2022-02-19Factor out input handling to input.cJune McEnroe 2022-02-19Factor out window management to window.cJune McEnroe 2022-02-19Enable -Wmissing-prototypesJune McEnroe 2022-02-19Fix edit.[ch] license notice additional permissionsJune McEnroe 2022-02-19Run line editing testsJune McEnroe 2022-02-18Implement new line editing "library"June McEnroe 2022-02-18Simplify cursor positioning in inputJune McEnroe 2022-02-18Fix M-f orderingJune McEnroe 2022-02-12Move sandman build to scripts/MakefileJune McEnroe 2022-02-12Use compat_readpassphrase.c on LinuxJune McEnroe 2022-02-12Copy RPP defines from oconfigureJune McEnroe