aboutsummaryrefslogtreecommitdiff
path: root/2015/08/puzzle-1.sh
blob: ee35d69fce76f88568db47cf80cdc6364db580ab (plain) (blame)
1
2
3
4
5
6
7
#!/usr/bin/env sh

X=$(tr -d '\n' <input | wc -c)
Y=$(sed 's/\(^"\|"$\)//g; s/\\x[a-f0-9]\{2\}/./g; s/\\[\\"]/./g' input \
	| tr -d '\n' \
	| wc -c)
expr $X - $Y