summaryrefslogtreecommitdiffstats
path: root/prog/aoc/23/1/2.sh
blob: f9fd95c151d06793b44dde5eb4337e15dd3224f8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
function s () {
	sed -e "s/\($1\)/\1$2\1/g"
}
s zero 0 |\
s one 1 |\
s two 2 |\
s three 3 |\
s four 4 |\
s five 5 |\
s six 6 |\
s seven 7 |\
s eight 8 |\
s nine 9