File: t.array2

package info (click to toggle)
original-awk 2022-09-12-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 8,284 kB
  • sloc: ansic: 5,739; awk: 1,235; sh: 973; yacc: 422; makefile: 68; 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"] }