aboutsummaryrefslogtreecommitdiff
path: root/2015/12/puzzle-1.sh
diff options
context:
space:
mode:
Diffstat (limited to '2015/12/puzzle-1.sh')
-rwxr-xr-x2015/12/puzzle-1.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/2015/12/puzzle-1.sh b/2015/12/puzzle-1.sh
new file mode 100755
index 0000000..7b509fe
--- /dev/null
+++ b/2015/12/puzzle-1.sh
@@ -0,0 +1,3 @@
+#!/usr/bin/env sh
+
+tr -c '\-0-9' '\n' <input | squash | paste -sd+ | bc