aoc2022/d04/part2.awk

4 lines
74 B
Awk
Raw Normal View History

2022-12-04 09:25:08 +00:00
# awk -F ',|-' -f part2.awk input
$3>$2 || $1 > $4 {n++}
END {print NR-n}