aoc2022/d04/part2.awk

4 lines
74 B
Awk

# awk -F ',|-' -f part2.awk input
$3>$2 || $1 > $4 {n++}
END {print NR-n}