diff options
Diffstat (limited to 'day1/one-liner.sh')
-rw-r--r-- | day1/one-liner.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/day1/one-liner.sh b/day1/one-liner.sh new file mode 100644 index 0000000..3854e98 --- /dev/null +++ b/day1/one-liner.sh @@ -0,0 +1,2 @@ +cat input | tr '\n' '+' | sed 's/++/\n/' | bc | sort -n | tail -n 3 +# sum the top three with a calculator :) |