Annotation of 43BSDReno/usr.bin/awk/test/t.nameval, revision 1.1.1.1

1.1       root        1:        { if (amount[$2] == "")
                      2:                name[++n] = $2
                      3:          amount[$2] += $1
                      4:        }
                      5: END    { for (i = 1; i <= n; i++)
                      6:                print name[i], amount[name[i]]
                      7:        }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.