Skip to content

Commit bff4735

Browse files
committed
more goofy sed
1 parent f295496 commit bff4735

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

2025/day06/p2-golf.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
set -f;mapfile -t a;for((h=${#a[@]}-1;r<${#a};++r))
22
do n=${a[h]:r:2};$n||o=$_;${n:1}||o=_;for((c=0;c<h;))
33
do printf ${a[c++]:r:1};done;printf $o
4-
done|sed 's=. *_=+=g;s=$=0\n='|bc
4+
done|sed 's>. *_>+>g;s<$<0\n<'|bc

0 commit comments

Comments
 (0)