diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-12-02 00:04:27 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-12-02 00:04:27 +0100 |
commit | d1d98a31f9a62e1497bde38178b22075471eb3b1 (patch) | |
tree | d7117bfc16c27ca6af5d13a6866ee6d0a36058a9 /2023/01/puzzle-1.an | |
parent | fbee8c65aa88b94e97b2cb6b29f615859bf34660 (diff) |
Add 2023 day 1 solutions
Diffstat (limited to '2023/01/puzzle-1.an')
-rwxr-xr-x | 2023/01/puzzle-1.an | 6 |
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 |