mirror of
https://github.com/wezm/advent-of-code.git
synced 2024-11-10 01:42:33 +00:00
5 lines
146 B
Bash
5 lines
146 B
Bash
|
#!/bin/zsh
|
||
|
|
||
|
paste -d '\0' <(tr -d a-z < $1 | rg -o ^.) <(tr -d a-z < $1 | rg -o .$) | \
|
||
|
awk 'BEGIN { sum = 0 } { sum += $0 } END { print sum }'
|