diff --git a/day01/sol.sh b/day01/sol.sh new file mode 100644 index 0000000..6b09140 --- /dev/null +++ b/day01/sol.sh @@ -0,0 +1,8 @@ +# solve day 1 with awk and sort + +# part 1 +awk 'BEGIN{RS="\n\n";m=0} {t=0; for(i=1;i<=NF;i++)t+=$i; if(m