File: t.array2

package info (click to toggle)
original-awk 2025-01-16-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 8,400 kB
  • sloc: ansic: 6,367; awk: 1,271; sh: 1,214; yacc: 422; makefile: 73; fortran: 1
file content (4 lines) | stat: -rw-r--r-- 168 bytes parent folder | download | duplicates (4)
1
2
3
4
$2 ~ /^[a-l]/	{ x["a"] = x["a"] + 1 }
$2 ~ /^[m-z]/	{ x["m"] = x["m"] + 1 }
$2 !~ /^[a-z]/	{ x["other"] = x["other"] + 1 }
END { print NR, x["a"], x["m"], x["other"] }