#! /usr/bin/gawk -f # Used internally by "compare-freqs" BEGIN {TOTAL = 0} /^#/ {next} /./ {for(i=2;i<=NF;i+=2) {TOTAL += $(i)}} END {print TOTAL}