Gawk/Input-Exercises

From Get docs

Previous: Input Summary, Up: Reading Files   [Contents][Index]


4.15 Exercises

  1. Using the FIELDWIDTHS variable (see section Reading Fixed-Width Data), write a program to read election data, where each record represents one voter’s votes. Come up with a way to define which columns are associated with each ballot item, and print the total votes, including abstentions, for each item.