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 :)