summaryrefslogtreecommitdiffstats
path: root/scripts/genpinyins.awk
blob: 8ab3d13e1d8948b522a09761d05f1233afca4e51 (plain)
1
2
3
4
5
6
7
8
#!/usr/bin/awk
	{ if (length($2) == len) pinyins[$1] += $4 }

END {
    for (pinyin in pinyins) {
        print pinyin, pinyins[pinyin]
    }
}