summary refs log tree commit diff homepage
path: root/2020/day18-2.sh
blob: 1f494460d85343f16920b83c0370ba1a49fa1d8f (plain) (blame)
1
2
3
4
5
6
7
8
9
#!/bin/sh
sed '
s/(/&((/g
s/)/))&/g
s/*/))*((/g
s/+/)+(/g
s/^/((/
s/$/))/
' | ./day18