aboutsummaryrefslogtreecommitdiff
path: root/2023/01/puzzle-1.an
diff options
context:
space:
mode:
Diffstat (limited to '2023/01/puzzle-1.an')
-rwxr-xr-x2023/01/puzzle-1.an6
1 files changed, 6 insertions, 0 deletions
diff --git a/2023/01/puzzle-1.an b/2023/01/puzzle-1.an
new file mode 100755
index 0000000..d09f845
--- /dev/null
+++ b/2023/01/puzzle-1.an
@@ -0,0 +1,6 @@
+#!/usr/local/bin/andy
+
+tr -d a-z <input
+| sed -E 's/(.).*(.)/\1\2/; s/^.$/&&/'
+| paste -sd+
+| bc